elm / http

Make HTTP requests in Elm
https://package.elm-lang.org/packages/elm/http/latest
BSD 3-Clause "New" or "Revised" License
155 stars 46 forks source link

Incorect filename in Content-Disposition using bytesPart #68

Open danhandrea opened 4 years ago

danhandrea commented 4 years ago

Using bytesPart in a multipartBody will always set the filename in Content-Disposition to "blob" even though bytesPart used with correct parameters.

Http.bytesPart "picture_name.jpg" "image/png" bytes

will become Content-Disposition: form-data; name="picture_name.jpg"; filename="blob"