Questions tagged [multipart]

Multipart is content type that allows multiple MIME types to be embedded in a single message.

Commons uses of multipart subtypes include:

References

1904 questions
22
votes
2 answers

Upload large files to S3 with resume support

(I'm new to Amazon AWS/S3, so please bear with me) My ultimate goal is to allow my users to upload files to S3 using their web browser, my requirements are: I must handle large files (2GB+) I must support pause/resume with progress…
style-sheets
  • 727
  • 3
  • 7
  • 15
21
votes
2 answers

How to Create a Multipart HTTP Response With ASP.NET Core

I would like to create an action method in my ASP.NET Core controller which returns a Multipart HTTP Response containing several files. I know that using a .zip file is the recommended approach for websites but I am considering using such a request…
21
votes
2 answers

Uploading multiple images with volley?

I have gone through a lot of post in SO and other tuts as well.But i couldn't get any latest official or other post that doesn't contain any deprecated code for uploading multiple images using volley.I came to know Apache HTTP Client removal and…
Stella
  • 1,817
  • 6
  • 30
  • 55
21
votes
4 answers

How is an HTTP multipart "Content-length" header value calculated?

I've read conflicting and somewhat ambiguous replies to the question "How is a multipart HTTP request content length calculated?". Specifically I wonder: What is the precise content range for which the "Content-length" header is calculated? Are…
Moshe Rubin
  • 1,944
  • 1
  • 17
  • 37
21
votes
3 answers

Node.js appears to be missing the multipart module

I am trying to parse form data, including upload files with a node.js http server. All of the tutorial type articles I have found use a require("multipart"); to include the multipart module, but when I try the same I get: Error: Cannot find module…
Brenton Alker
  • 8,947
  • 3
  • 36
  • 37
21
votes
3 answers

Python standard library to POST multipart/form-data encoded data

I would like to POST multipart/form-data encoded data. I have found an external module that does it: http://atlee.ca/software/poster/index.html however I would rather avoid this dependency. Is there a way to do this using the standard…
hoju
  • 28,392
  • 37
  • 134
  • 178
20
votes
3 answers

Multipart request with Retrofit @PartMap Error in Kotlin (Android)

If I am using this code in Java then its working fine. When I convert that code in kotlin then I got Error. Logcat 08-20 23:46:51.003 3782-3782/com.qkangaroo.app W/System.err: java.lang.IllegalArgumentException: Parameter type must not include a…
20
votes
3 answers

Postman multipart/form-data error: Missing start boundary

I'm trying to hit my server's endpoint with a multipart/form-data request sent from Postman. I'm getting a 400 Bad Request and the cause is: org.jvnet.mimepull.MIMEParsingException: Missing start boundary. How can I set the start boundary and how…
Anton Belev
  • 11,963
  • 22
  • 70
  • 111
20
votes
2 answers

Is there a de facto or established reason why multipart HTTP responses aren't generally supported in browsers?

The HTTP protocol has supported multipart responses for a long time. I've used them before for APIs with appropriately equipped consumers, but it doesn't appear browser support for them is very good, nor has it improved in the last half-decade. I've…
coreyward
  • 77,547
  • 20
  • 137
  • 166
18
votes
2 answers

How to test a FastAPI api endpoint that consumes images?

I am using pytest to test a FastAPI endpoint that gets in input an image in binary format as in @app.post("/analyse") async def analyse(file: bytes = File(...)): image = Image.open(io.BytesIO(file)).convert("RGB") stats =…
Davide Fiocco
  • 5,350
  • 5
  • 35
  • 72
18
votes
5 answers

Spring Boot multipartfile always null

I am using Spring Boot version = '1.4.0.RC1' with Spring Boot Stormpath 1.0.2. I am trying to use multipart file upload but the MultipartFile is always null in the controller. When I use @RequestPart("file") the info: "status":400,"error":"Bad…
JabariP
  • 340
  • 1
  • 2
  • 8
18
votes
1 answer

Set content-length header on individual parts of a multipart/form-data upload

I would like to upload multiple files using a post request of type multipart/form-data and for each file I need to know the file size (content-length) on the server side. To construct the POST request in javascript I use a FormData object and append…
user1587520
  • 3,777
  • 1
  • 21
  • 20
17
votes
5 answers

Retrofit 2 Multipart image upload with data

Hello everyone I want to post image and other data through Retrofit2. I am sending data with one image. All the other info is storing but my image is not storing.while i am testing with postman, it works. please guide me where I am lacking in my…
Wasi Sadman
  • 1,382
  • 1
  • 15
  • 27
17
votes
3 answers

Making an HTTP POST call with multipart/form-data using jQuery?

I'm trying to make a HTTP POST call with multipart/form-data , using jQuery: $.ajax({ url: 'http://localhost:8080/dcs/rest', type: 'POST', contentType:'multipart/form-data', data:…
Alex Brooks
  • 5,133
  • 4
  • 21
  • 27
16
votes
5 answers

Choice of transports for JSON over TCP

I'm writing a simple streaming JSON service. It consists of JSON messages, sent intermittently, for a long period of time (weeks or months). What is the best practise with regard to sending multiple JSON messages over a plain TCP socket? Some…
fadedbee
  • 42,671
  • 44
  • 178
  • 308