Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multipart posts: sending name requires a mime-type #634

Open
ejschoen opened this issue May 6, 2023 · 0 comments
Open

multipart posts: sending name requires a mime-type #634

ejschoen opened this issue May 6, 2023 · 0 comments

Comments

@ejschoen
Copy link

ejschoen commented May 6, 2023

I wonder if this is worth documenting in the README for Multipart posts: Due to the design of the Filebody constructor, a File part in a multipart post won't send with the value of the :name key(i.e., filename) unless the part map also has :mime-type. The README has an example for a part value that's something like {:name ... :content (io/as-file ...)} that doesn't actually do what the example hints, since it doesn't send the name, only the part-name, in this case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant