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

1758 questions
349
votes
3 answers

What is http multipart request?

I have been writing iPhone applications for some time now, sending data to server, receiving data (via HTTP protocol), without thinking too much about it. Mostly I am theoretically familiar with process, but the part I am not so familiar is HTTP…
MegaManX
  • 7,289
  • 12
  • 46
  • 75
120
votes
2 answers

Example of multipart/form-data

I am wondering if anyone can share with me an example of multipart/form-data that contains: Some form parameters Multiple files
user496949
  • 75,601
  • 138
  • 297
  • 413
102
votes
12 answers

How can I make a multipart/form-data POST request using Java?

In the days of version 3.x of Apache Commons HttpClient, making a multipart/form-data POST request was possible (an example from 2004). Unfortunately this is no longer possible in version 4.0 of HttpClient. For our core activity "HTTP", multipart…
lutz
100
votes
2 answers

What should a Multipart HTTP request with multiple files look like?

I'm working on an iPhone app that makes a multipart HTTP request with multiple image files. It looks like what's happening, on the server side, is that one of the images is getting parsed properly, but the other two files are not. Can anybody post…
bpapa
  • 21,107
  • 23
  • 95
  • 147
84
votes
3 answers

Sending Multipart html emails which contain embedded images

I've been playing around with the email module in python but I want to be able to know how to embed images which are included in the html. So for example if the body is something like I would like to embed…
John Jiang
  • 9,721
  • 11
  • 46
  • 60
81
votes
7 answers

POST data using the Content-Type multipart/form-data

I'm trying to upload images from my computer to a website using go. Usually, I use a bash script that sends a file and a key to the server: curl -F "image"=@"IMAGEFILE" -F "key"="KEY" URL it works fine, but I'm trying to convert this request into…
Epitouille
  • 5,630
  • 8
  • 32
  • 53
52
votes
10 answers

How to read text inside body of mail using javax.mail

i'm developing a client mail using javax.mail to read mail inside mail box: Properties properties = System.getProperties(); properties.setProperty("mail.store.protocol", "imap"); try { Session session =…
JackTurky
  • 12,431
  • 41
  • 126
  • 208
52
votes
3 answers

How to download multiple files with one HTTP request?

Use case: user clicks the link on a webpage - boom! load of files sitting in his folder. I tried to pack files using multipart/mixed message, but it seems to work only for Firefox This is how my response looks like: HTTP/1.0 200 OK Connection:…
zakovyrya
  • 9,203
  • 5
  • 36
  • 28
45
votes
5 answers

Spring Controller @RequestBody with file upload is it possible?

I have a Controller like this and I want to submit a form with file uploading as well as some form data like label as shown below. Also, I want to do that using @RequestBody so I can use the @Valid annotation on the wrapper as more variables will be…
Yatin
  • 723
  • 1
  • 6
  • 14
37
votes
4 answers

Generating multipart boundary

I'm writing a script that uploads a file to a cgi script that expects a multipart request, such as a form on a HTML page. The boundary is a unique token that annotates the file contents in the request body. Here's an example…
August Lilleaas
  • 51,168
  • 11
  • 94
  • 107
36
votes
6 answers

Multipart File upload Spring Boot

Im using Spring Boot and want to use a Controller to receive a multipart file upload. When sending the file I keep getting the error 415 unsupported content type response and the controller is never reached There was an unexpected error…
Rob McFeely
  • 2,423
  • 8
  • 29
  • 47
35
votes
4 answers

Browser support of multipart responses

I would like to create a HTTP response, using multipart/mixed, but I'm not sure which browsers support it; and if it's as convenient as it sounds, from the client's point of view. To be honest, I do not need specifically that content type. I just…
Diego Jancic
  • 6,605
  • 6
  • 46
  • 76
31
votes
5 answers

Testing ActionMailer multipart emails(text and html version) with RSpec

I'm currently testing my mailers with RSpec, but I've started setting up multipart emails as described in the Rails Guides here: http://guides.rubyonrails.org/action_mailer_basics.html#sending-multipart-emails I have both mailer templates in text…
cmhobbs
  • 2,149
  • 3
  • 21
  • 29
30
votes
8 answers

Inline images in email using JavaMail

I want to send an email with an inline image using javamail. I'm doing something like this. MimeMultipart content = new MimeMultipart("related"); BodyPart bodyPart = new MimeBodyPart(); bodyPart.setContent(message, "text/html;…
akula1001
  • 4,378
  • 12
  • 39
  • 55
29
votes
2 answers

How to manually install a node.js module?

I want to upload a file to s3 so I want to run the upload program from this article: http://www.componentix.com/blog/9 For this I need to install the multipart module. https://github.com/isaacs/multipart-js But by doing npm install multipart it is…
XMen
  • 25,629
  • 39
  • 95
  • 148
1
2 3
99 100