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
12
votes
3 answers

How to handle multipart/alternative mail with JavaMail?

I wrote an application which gets all emails from an inbox, filters the emails which contain a specific string and then puts those emails in an ArrayList. After the emails are put in the List, I am doing some stuff with the subject and content of…
Jef
  • 791
  • 1
  • 18
  • 36
11
votes
4 answers

Disable spring boot multipart upload by controller

I am using spring boot for uploading files. The files sizes are usually about 2GB and we cannot use the default spring boot StandardServletMultipartResolver or CommonsMultipartResolver since the server have limited resource (disk space) or memory…
Dave Chen
  • 121
  • 1
  • 1
  • 5
11
votes
7 answers

Multipart file maximum size exception - spring boot embbeded tomcat

I have set max file size to multipart.maxFileSize: 1mb multipart.maxRequestSize: 1mb This is my controller : @RequestMapping(method=RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE, consumes =…
10
votes
1 answer

HTTP multipart response using Perl

Is it possible to provide HTTP multipart response just like multipart request? The scenario is like, I would like to provide a URL which takes a parameter for EmployeeID, and in return the response should consist of employee's photo, latest payslip…
Srikanth Vittal
  • 476
  • 7
  • 22
10
votes
1 answer

Parse a String containing multipart/form-data request body in Java

Problem statement I think the title says it all: I'm looking for the way to parse a String containing the body part of a multipart/form-data HTTP request. I.e. the contents of the string would look something like…
Attilio
  • 1,624
  • 1
  • 17
  • 27
10
votes
2 answers

using curl for multipart/form-data with a file upload

I have a server API that I have developed against the format used by Fiddler to do HTTP posts of files, which is a multipart/form-data post. I'm trying to get curl to do something similar (so I can stop using Fiddler for testing and instead have a…
Stephen
  • 8,508
  • 12
  • 56
  • 96
10
votes
4 answers

Java: Receive a multipart HTTP response

I'm writing a Java client application to receive live M-JPEG video from an IP camera. The video is sent by the camera as an endless multipart HTTP message where each part is a single JPEG frame. I need to process each of these frames as they arrive,…
user52386
  • 111
  • 1
  • 1
  • 5
10
votes
3 answers

Android Multipart Upload

As part of my Android app, I'd like to upload bitmaps to be remotely stored. I have simple HTTP GET and POST communication working perfectly, but documentation on how to do a multipart POST seems to be as rare as unicorns. Furthermore, I'd like to…
zchtodd
  • 1,140
  • 10
  • 24
10
votes
2 answers

Parsing multipart/mixed responses in jQuery

Good day. I'm new to jQuery, and have a passing familiarity with javascript, having spent most of my time on the server side. My interest is in posting in the browser a multipart/form-data form object consisting of one text field and one file. In…
ae6rt
  • 2,668
  • 3
  • 24
  • 25
10
votes
2 answers

Reading multipart content from raw http request

I am saving a raw HTTP request to a text file and I need to read the multipart content within it. I know there are a number of 3rd party tools to do this but I need to do this with the .NET framework if possible. I have tried reading the txt file…
user517406
  • 13,623
  • 29
  • 80
  • 120
10
votes
1 answer

Save MultipartFileData file to disk

I have the bellow code which I have seen in other threads here, but nowhere does it actually show how to save a MultipartFileData file to disk once you have it. [HttpPost] public Task PostFormData() { // Check if the request…
user2520440
10
votes
4 answers

Spring upload file problems

I need to upload file from browser to server. I use spring 3.2 as my web framework. So i configured my app like this. 1 - I got web.xml
user2160696
  • 699
  • 3
  • 8
  • 21
10
votes
4 answers

Apache multipart POST "pass request body failed"

We are having problems with our web server (which is configured ssl -> apache -> jetty) randomly rejecting multipart upload POST requests with a 400 Bad Request error code. The apache error log (on info level) shows the following two errors: [info]…
m1h4
  • 1,139
  • 2
  • 13
  • 22
9
votes
3 answers

Python 3 script to upload a file to a REST URL (multipart request)

I am fairly new to Python and using Python 3.2. I am trying to write a python script that will pick a file from user machine (such as an image file) and submit it to a server using REST based invocation. The Python script should invoke a REST URL…
AniJ
  • 205
  • 2
  • 4
  • 9
9
votes
2 answers

How to modify existing Java mail MimeMessage body parts?

I am trying to modify existing MimeMessage body part. I would like to filter certain links. Does any of you know why even though body part content seams to be changed message is sent with old content? Is there some caching going on? Any idea how to…
Konrad Pawlus
  • 1,641
  • 3
  • 14
  • 20