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
33
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,469
  • 3
  • 24
  • 30
33
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,576
  • 12
  • 43
  • 56
32
votes
6 answers

Angular file upload progress percentage

In my application that i am developing in Angular 4, user can upload multipart files into server. Files are large. I need to show the current progress of file upload process with it's percentage to user, how can i do it? Thanks in advance!
komron
  • 2,267
  • 2
  • 17
  • 26
32
votes
2 answers

Using @RequestParam for multipartfile is a right way?

I'm developing a spring mvc application and I want to handle multipart request in my controller. In the request I'm passing MultiPartFile also, currently I'm using @RequestParam to get the file parameter, the method look…
Pranav C Balan
  • 113,687
  • 23
  • 165
  • 188
32
votes
2 answers

Retrofit - Multipart request: Required MultipartFile parameter 'file' is not present

I'm trying to send file on server using Retrofit2. I do everything according documentation, but always get 400 server error. I'm tried to do like this: RequestBody body = RequestBody.create(MediaType.parse("image/png"), photo); …
Yura Buyaroff
  • 1,718
  • 3
  • 18
  • 31
30
votes
5 answers

Is there a lightweight multipart/form-data parser in C or C++?

I'm looking at integrating multipart form-data parsing in a web server module so that I can relieve backend web applications (often written in dynamic languages) from parsing the multipart data themselves. The multipart grammar (RFC 2046) looks…
Hongli
  • 18,682
  • 15
  • 79
  • 107
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
  • 29,384
  • 41
  • 99
  • 151
29
votes
1 answer

Is using multipart/form-data any better then JSON + Base64?

I have a server and I need to upload files along with some fields from the client to the server. I have currently been using standard multipart/form-data. I have found however that using multipart/form-data is not ideal. Objects on my server may…
genixpro
  • 503
  • 1
  • 5
  • 8
27
votes
2 answers

Send a file as multipart through XMLHttpRequest

Can I send a file as multipart by XMLHttpRequest to a servlet? I am making a form and submitting it as multipart, but somehow I am not getting a response for successfully uploading it. I do not want the page to be refreshed, so it has to take place…
Tejasva Dhyani
  • 1,342
  • 1
  • 10
  • 19
27
votes
3 answers

Multer create new folder with data

I use multer. Question 1 When I put the following snippet in the app.js app.use(multer({ dest: './uploads' } ).single('file')); it creates a new folder under the root folder, my question is about this new folder's lifeCycle, When it'll…
user4209821
25
votes
2 answers

What is difference Between Base64 and Multipart?

Can any one explain what is the advantage of Base64 as well Multipart I know Multipart is faster then Base64... But still many developers are using Base64...I studied both documentation but i am not clear
demo
  • 672
  • 3
  • 9
  • 34
24
votes
2 answers

"Retrofit" multiple images attached in one multipart request

Is there any way to attached multiple images in one multipart request? The images is dynamic based on the number of images that user has picked. Below code only works for single image: Interface: @Multipart @POST("/post") void…
Louis Loo
  • 641
  • 1
  • 7
  • 11
24
votes
3 answers

How to read several (file) inputs with the same name from a multipart form with Jersey?

I have successfully developed a service, in which I read files uploaded in a multipart form in Jersey. Here's an extremely simplified version of what I've been doing: @POST @Path("FileCollection") @Consumes(MediaType.MULTIPART_FORM_DATA) public…
toniedzwiedz
  • 17,895
  • 9
  • 86
  • 131
23
votes
5 answers

I need Multi-Part DOWNLOADS from Amazon S3 for huge files

I know Amazon S3 added the multi-part upload for huge files. That's great. What I also need is a similar functionality on the client side for customers who get part way through downloading a gigabyte plus file and have errors. I realize browsers…
Bth
  • 423
  • 1
  • 4
  • 11
22
votes
5 answers

Multipart request with AngularJS

I have an API endpoint to which I must send a multipart HTTP request, composed of two parts, file (a file system file) and data (a JSON object). After some research I found out how to do a multipart request in AngularJS: $http({ method: 'POST', …
Adrian Marinica
  • 2,191
  • 5
  • 29
  • 53