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

Flutter Format Exception when uploading multipart image to server with header and body fields?

I need to upload an image to server with header, body and token using http package. http.MultipartRequest imageUploadRequest = http.MultipartRequest('POST', Uri.parse(BASE_URL)); imageUploadRequest.headers["Authorization"] = "bearer…
Jay Mungara
  • 6,663
  • 2
  • 27
  • 49
0
votes
1 answer

Building a Spring Controller for a multipart/mixed post by Syncfusion Datamanager

Hello, I am currently trying to build a spring boot backend to match with Syncfusion's Datamanager (their documentation for backend construction is purely for .NET as far as I can see.) I have managed to get the GET functionality working so my data…
0
votes
1 answer

Why this max file size configuration not working?

I add this lines to my application.properties file: # Multipart Configuration multipart.maxFileSize = 150Mb multipart.maxRequestSize = 150Mb multipart.fileSizeThreshold = 5Mb but when I try upload a file bigger than 1MB, I get this…
Kleber Mota
  • 8,521
  • 31
  • 94
  • 188
0
votes
1 answer

Uploading Image with Multer - additional blob created alongside image

const upload = multer({ dest: `${__dirname}/uploads/images` }); app.post( "/api/users/:id/uploadProfilePic", upload.single("image"), updateProfilePic ); const updateProfilePic = async (req, res) => { const userId = req.param("id"); if…
Alk
  • 5,215
  • 8
  • 47
  • 116
0
votes
1 answer

Process Json request with Multipart File

I am passing Multipart file with other user information . i am getting Failed to convert property value of type java.lang.String to required type org.springframework.web.multipart.MultipartFile for property file; nested exception is…
0
votes
2 answers

How can I solve this error :Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2 path $

How can I solve this problem? class InformationActivity : AppCompatActivity() { private val _tag = SplashActivity::class.java.simpleName override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) …
user12180120
0
votes
1 answer

How to configure and send multipart request via RestAssured

I'm trying to configure and send a multipart request like the following one: ------boundary Content-Disposition: form-data; name="before"; filename="blob" Content-Type: application/vnd...+json;type=some_type {some…
Alexei
  • 1
  • 1
0
votes
1 answer

Multipart posts upload images - setting transfer encoding, setting headers for each part

Using java, I need to do a multipart form request to Constant Contacts api to upload an image. I need to create one part with XML per their specifications to describe the file and the second part needs to be the file itself. Not a problem. Problem…
0
votes
2 answers

js.erb rendering only the ruby code, not the js

Edit: I solved the problem myself - see below I have a form where I upload images using the add_picture_to_project_path route included in my projects_controller.rb. This method is exectuing the file upload in the model and then returning some Json…
0
votes
1 answer

How send mutipart/form-data request with curl

I am trying to send a multipart form request thru curl but it seems to be timing out on the server. I am not a curl wiz and am trying to figure out what I am doing wrong. I can post thru postman just fine and if I copy the curl request out of…
0
votes
1 answer

Image sent to my webservice is always null using Carter framework

I am having a small issue where the image im sending from postman is not populated into my model when using BindAndValidate method. Here is my model : public class Photo { public string date {get; set;} public byte[] image {get; set;}…
Matias Barrios
  • 4,674
  • 3
  • 22
  • 49
0
votes
0 answers

How to use multipart in ionic

I am working on ionic 3 application. I have to send image on server. all is working fine but when i upload image it gives me internal server error. I want to send it by using multipart but unfortunately i don't know how to use it in ionic. I am so…
Malik Rizwan
  • 123
  • 2
  • 14
0
votes
1 answer

How to upload multiple Multipart files using feign client in Microservice architecture

I'm trying to upload multiple multipart file using feign client, but I am not being able to do so. After few research, File Upload Using Feign - multipart/form-data File upload spring cloud feign client Array Multipart[] file upload using Feign…
Smriti mool
  • 139
  • 4
  • 11
0
votes
2 answers

How to read file content from an http.Request's response

I use below code to send a request to an http server. The server sends a response that contains those http headers Content-Disposition:[attachment;filename=somefilename.csv] Content-Type:[text/csv; charset=UTF-8] How do i proceed to retrieve the…
pshx
  • 897
  • 1
  • 8
  • 9
0
votes
1 answer

Pass Java Object into Retrofit not processing correctly

I am trying to upload an array of files, an authorization header, and a java object. The issue is the way the backend is setup, I do not want to name the @Part annotation for my DocumentUpdateObject. Is there a way to allow for @Part(null), or to…
C. Skjerdal
  • 2,750
  • 3
  • 25
  • 50