You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into an issue where a remote server would refuse data (inside a multipart) unless the Content-Disposition header contained a filename, but I couldn't find any way to set one.
To be specific, in a multipart-part the server required:
I looked at the documentation for encode_form/1 but I wasn't able to solve the issue with ExtraHeaders, because the goal is to modify the existing header, rather than adding new siblings.
The text was updated successfully, but these errors were encountered:
My current workaround is to save the data to a temporary file on disk (with a specific name), use {file, Path, Name, ExtraHeaders}, and then delete the temporary file afterwards... But it's annoying.
I ran into an issue where a remote server would refuse data (inside a multipart) unless the
Content-Disposition
header contained a filename, but I couldn't find any way to set one.To be specific, in a multipart-part the server required:
But refused to accept:
I looked at the documentation for encode_form/1 but I wasn't able to solve the issue with
ExtraHeaders
, because the goal is to modify the existing header, rather than adding new siblings.The text was updated successfully, but these errors were encountered: