Multipart helper
See original GitHub issueThe first part of this would be a class that just implements taking a files/data dict, and returning the byte-wise multipart content, plus the Content-Type header.
Places to start with this include urllib3
, and the requests-toolbelt
streaming multipart encoder.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Uploading and copying objects using multipart upload
Multipart upload allows you to upload a single object as a set of parts. Each part is a contiguous portion of the object's...
Read more >In Asp.Net Core, how can I get the multipart/form-data from the ...
I created a helper method that grabs both files and form values. public static List<FileModel> GetFileModelsFromRequest(HttpRequest request) { ...
Read more >chikien276/MultipartHelper: AspNetCore multipart upload file ...
AspNetCore multipart upload file helper. Contribute to chikien276/MultipartHelper development by creating an account on GitHub.
Read more >Multipart Class | Microsoft Learn
Helper for submitting multipart data This follows the Network Working Group's RFC on multipart/form-data posting format: ...
Read more >Multipart Form-Data Upload - Help Center - Azuqua
Run nc -l -p 8000 to create a netcat server listening on localhost:8000. This will display the body of our multipart request. If...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sure, so I think you need to split up between
data=...
(foroperations
andmap
) andfiles=...
(fordoc.pdf
), something like this…The multipart encoding occurs whenever
files=...
is passed and non-empty, so in this case it will use whatever is indata
as additional fields in the multipart form data.This behavior is actually not crystal clear in the docs I believe, could probably use a “You can also add additional fields by passing
data=...
” in Sending Multipart Form Uploads.You’d need to be providing more details about exactly what you’re not able to do with httpx’s multiparty support in order for us to be able to help at all.