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

UnityWebRequest.Post() multipart/form-data doesnt append files to itself

I want to upload an image to Nodejs backend server(multer plugin handles multipart section) My code is this: IEnumerator Uploadimage(string url, string _headerKey, string _headerValue) { _headerValue =…
0
votes
0 answers

Sending a file as multipart parameter with jersey-multipart

everyone! I'm trying to send a request to a Rest Service to upload a PDF file, but I'm getting a HTTP Status of 400. The service allows sending several files, but only one is required. The WADL Definition is:
0
votes
1 answer

How to resolve rg.glassfish.jersey.server.model.ModelValidationException

We are trying to write a REST service which accepts a file upload and a xml payload. The following is the method signature: @POST @Path("/upload") @Consumes(MediaType.MULTIPART_FORM_DATA) @Produces(MediaType.APPLICATION_XML) public…
azaveri7
  • 793
  • 3
  • 18
  • 48
0
votes
0 answers

Access files from multipart/mixed POST in PHP

I have to process this POST in PHP. In this case $_FILES will be empty. I can use php://input but not sure how to use the boundary part. Or is there any PHP feature on this I am missing ? Can anyone shed some light on this, please ? POST…
pszaba
  • 1,034
  • 9
  • 16
0
votes
1 answer

Server error 415 while uploading Multipart image in Android

I am receiving Unsupported File Format error from server while uploading Image file over server. I have followed a web url and have utilised their code to my comfort. public class MultipartUtility { private final String boundary; …
AndroidHacker
  • 3,596
  • 1
  • 25
  • 45
0
votes
1 answer

uploading file contents in python takes a long time

I'm trying to upload files with the following code: url = "/folder/sub/interface?" connection = httplib.HTTPConnection('www.mydomain.com') def sendUpload(self): fields = [] file1 = ['file1', '/home/me/Desktop/sometextfile.txt'] f =…
taper
  • 9,236
  • 5
  • 28
  • 29
0
votes
0 answers

WebLogic: jersey-media-multipart Issue

I have a web application in Spring Boot which runs fine in local tomcat. However, our production server is in Weblogic however and the application fails on start up with the error: ""2018-12-20 08:28:14 [[ACTIVE] ExecuteThread: '2' for queue:…
0
votes
1 answer

Sending post request to API with multipart content-type

I am trying to send a post request though an api. The call requires: content-type: multipart/form-data; boundary=[boundary_number] I have used Charles HTTP proxy to watch see what headers/content I need to send. My Request: (basically copied from…
0
votes
1 answer

400 BAD Request error on HttpMethod.PUT - File upload second time

I have a PUT request method in the controller where I upload zip file and the method takes it as inputstream and processes the stream. It works well with file sizes of Kb. Now I uploaded a zip file of 10Mb size, and it works fine the first time. The…
Harish
  • 565
  • 1
  • 12
  • 34
0
votes
0 answers

Retrofit Multipart Nested Object

[ { “id”: "string", "images": [ null ], "quantity": 0, “description": "string" }, { “id”: "string", "images": [ null ], "quantity": 0, “description": "string" …
0
votes
1 answer

How do I create a multipart email from a non-multipart email in Python?

It seems like there should be a better way to do this. I have a plain text email, and I'd like to convert it to a multipart email. I can do it like this: import commonmark from email.mime.multipart import MIMEMultipart from email.mime.text import…
Wayne Werner
  • 49,299
  • 29
  • 200
  • 290
0
votes
0 answers

Split file to upload it via HTTP

I am working on a react / nodejs (express) stack. In this project, I have to upload large binary file (~150mb) from the client to server. Everything went well until the production deployment. Due to a proxy limitation (10mb) our request are blocked.…
Antoine Guittet
  • 476
  • 1
  • 3
  • 14
0
votes
1 answer

SpringBoot/Kotlin: Multipart MaxUploadSizeExceededException handler does not fire

Please excuse any horrible mistakes, I literally picked up Kotlin fully and some Spring about a week ago, due to a project requirement. I am trying to create a simple RESTful API with an endpoint that can accept a file via Multipart. Later on, there…
Erion
  • 33
  • 1
  • 6
0
votes
1 answer

How to upload a file directly from camera and send it as a multipart without having write or read permissions?

Hi i'm struggling to find a way to upload a file directly form android phone camera to my web server (accept multipart). Due to regulations in my country for fintech apps, i'm not allowed to ask the user for write and read storage permissions so i…
0
votes
1 answer

Multiple image upload in single multipart request with String Data Android

I'm Working on used goods sell Android application where I want to upload multiple images of goods on server.User can upload maximum 4 images of and at least he has to upload one image of goods.The number of goods images may vary between 1 to 4,it…
aamir ali
  • 17
  • 8