# Handling multipart/form-data with Mux or HTTP

**URL:** <https://discourse.julialang.org/t/handling-multipart-form-data-with-mux-or-http/24918>\
**Category:** General Usage\
**Tags:** mux\
**Created:** [June 4, 2019, 2:42pm UTC](https://discourse.julialang.org/t/handling-multipart-form-data-with-mux-or-http/24918 "2019-06-04T14:42:33Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![tencnivel](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tencnivel/32/8662_2.png) [@tencnivel](https://discourse.julialang.org/u/tencnivel)\
**Post date:** [July 29, 2019, 5:43am UTC](https://discourse.julialang.org/t/handling-multipart-form-data-with-mux-or-http/24918/3 "2019-07-29T05:43:57Z")

</div>

The code from @rssdev10 in [this post](https://discourse.julialang.org/t/http-multipart-form-data-processing-by-server/24076/2) actually works fine (for uploading one file).

If using Mux, the code is then the following:

```julia
file_content = parse_multipart(req[:data])
write("test.png",file_content)

```

With `parse_multipart` being given in the post aforementioned

---

_[View the full topic](https://discourse.julialang.org/t/handling-multipart-form-data-with-mux-or-http/24918)._
