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
0
votes
1 answer

getting error in uploading multiple images using multipart

Below is my source code and the error MultipartParser parser; parser = new MultipartParser(request, 1024 * 1024 * 1024); //this line generates error /* file limit size of 1GB*/ Part _part; while ((_part = parser.readNextPart()) != null) { if…
0
votes
0 answers

upload audio file with retrofit2

i am trying to upload audio file to server with retrofit2. after sending request the response is : "message": "(1007) Unsupported audio format" these are information that i'm sent with PostMan : here my code : InterFace : @Multipart …
The MJ
  • 453
  • 7
  • 17
0
votes
1 answer

How to send list of files by RESTEasy java

How can we send list of files by RESTEasy java client? Spring REST is: @PostMapping() public ResponseEntity send(@RequestPart(value = "message") String message, @RequestPart(value = "attachment", required = false) List
0
votes
1 answer

Mixing content types in multipart request

I'm implementing a multipart request DSL for kohttp The most common use-case for it is file uploading. However, I'm interested in what are the other common cases? Regarding w3 multipart docs it's reasonable to have multipart/alternative with…
Sergei Rybalkin
  • 3,337
  • 1
  • 14
  • 27
0
votes
1 answer

Sending multipart/related request via javascript and XmlHttpRequest

I'm trying to send multipart/related request to my own server based on cpprestsdk: POST /test HTTP/1.1 Content-Type: multipart/related; boundary=- --- Content-Type: application/json { "testField": "testValue" } --- Content-Type:…
Denis
  • 2,786
  • 1
  • 14
  • 29
0
votes
1 answer

Upload image server using multipart in android

Upload image server using multipart in android. Here i have used this url public static final String UPLOAD_URL = "http://abcds.com/clients/cupidapi/uploadimg"; Here i have used multipart to upload image in Mysql database server. When i try to…
0
votes
1 answer

Send email with multiple attachments in Spring boot

I'm creating an api for sending email in Spring Boot. I can successfully send an attachment in email using the following api @PostMapping("/send") public void sendMail(@RequestParam(value = "receiver") String receiver, @RequestParam(value =…
0
votes
1 answer

Client side code for multipart REST operation

Hi I need to consume a REST operation which accepts a xml payload and a pdf file. Basically a JAXB object is converted to xml string and uploaded in a xml file. So in a multipart request, a xml file and pdf file are uploaded. The REST operation…
azaveri7
  • 793
  • 3
  • 18
  • 48
0
votes
1 answer

How can I send an email message with an attachment, but without any plaintext body using System.NET.mail?

Our application is sending our emails with Word attachments using System.Net.Mail. We have empty-string as our plaintext bodies. The application receiving these email messages sends them as faxes, with the result that the fax machines prints an…
GlennS
  • 5,251
  • 6
  • 28
  • 31
0
votes
1 answer

Handling a multipart Response body in Angular

I receive a multipart response body in Angular but the application is not handling the response correctly. It turns out the HttpClient in Angular is not able to parse multipart response bodies correctly (see this issue on GitHub). The HttpClient…
Wilt
  • 41,477
  • 12
  • 152
  • 203
0
votes
0 answers

Spring boot 2.1.2.RELEASE getting special character issue in multipartfile request

I have a project with Spring boot and I'm trying to upload a csv file which contains special character i.e: "ΕΛΙΑ ΚΑΤΑΣΚΕΥΑΣΤΙΚΗ Α.Ε.", while processing file special character getting replaced by following "???? ??????????????…
Ankit.A
  • 1
  • 2
0
votes
1 answer

How to upload files to s3 via REST API

I am trying to use the REST API to upload large file fragments to S3. According to the documentation, I can get the uploadId required by Initiate Multipart Upload, but when I execute the second step Upload Part, I get the error message:…
nemo
  • 3
  • 2
0
votes
2 answers

Multipart POST request using Retrofit

Android beginner here. I am having an issue with Multipart POST request. I am calling my API using POSTMAN and it returns code :200 but when i am calling it from my Application, it returns 503. I found out that this can happen because POSTMAN sends…
Sandeep
  • 1
  • 1
0
votes
0 answers

The difference between the request time and the current time is too large. The remote server returned an error: (403) Forbidden

I am getting The difference between the request time and the current time is too large. The remote server returned an error: (403) Forbidden. When uploading files from Windows 2012/2016 Server EC2 instances to AWS S3. I have configured NTP as well…
0
votes
1 answer

Wrong values for parameters send using MultipartFormData

All I do is simply like: func postMultipart(_ url: URL, parameters: [String: Any]?, headers: [String: String]?, image: UIImage?, success: @escaping SuccessHandler, failure: @escaping ErrorHandler) { manager.upload(multipartFormData: {…
Bartłomiej Semańczyk
  • 59,234
  • 49
  • 233
  • 358