Skip to content
New issue

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

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

Already on GitHub? # to your account

Multipart body handling? File uploading? #2

Open
d1snin opened this issue May 3, 2022 · 4 comments
Open

Multipart body handling? File uploading? #2

d1snin opened this issue May 3, 2022 · 4 comments

Comments

@d1snin
Copy link

d1snin commented May 3, 2022

Is there any convenient API for handling binary data uploads?

@angryziber
Copy link
Member

If you accept a single file, then just read the body stream. Or include it as part of json request (base64).
Or you are welcome to contribute multipart parser. I still haven't found a use for it yet in my projects :-)

@angryziber
Copy link
Member

Partially handled by MultipartFormDataParser in 1.2.8 (text only files for now)

@netknight
Copy link

What about many files in one with Content-Disposition and other stuff? If user uploads bulk of images - this is most welcome approach (especially if you need keep files order).

@angryziber
Copy link
Member

MultipartFormDataParser can handle multiple files without a problem, but only tested with text files for now.
If you are uploading many files, it is probably best to do it one-by-one anyway, so that you can retry them one-by-one if anything fails.

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

No branches or pull requests

3 participants