Angular 4 multipart form with null parameters

Hello guys i am having a problem on posting a multipart form-data on an Angular 4.3 + Spring Boot Rest app. Whatever i put as parameter in the Java method i get the message "Required request part 'arquivo' is not present" or "Required request paramet...
more »

2017-09-05 18:09 (0) Answers

Jersey Multipart Form Data Default Value?

I have a method that accepts type Multipart Form Data. One of the parameters to this method is a file form data param, shown by @FormDataParam("file") InputStream inputStream, @FormDataParam("file") FormDataContentDisposition contentDispositionHeade...
more »

2017-09-01 04:09 (1) Answers

Spring boot Angular2 file download not working

I am having a problem with dowloading file from spring boot with angular2. Here is my code from spring boot, it came from: Return generated pdf using spring MVC. I can download file dirrectly with postman but not with angular2... @RequestMapping(va...
more »

2017-03-27 11:03 (1) Answers

REST Endpoint to send File in Java

I'm trying to write a REST API (java) that can receive a file. My REST API looks as follows: import com.sun.jersey.core.header.FormDataContentDisposition; import com.sun.jersey.multipart.FormDataParam; @POST @Path("/upload") @Produces(MediaType.TEX...
more »

2017-03-12 05:03 (1) Answers

Jersey - Multipart data form with text body parts

I am trying to send Multipart Form into the Jersey 2.22.1 server as a POST request. This request contains file and multiple text fields. What is happening on the server side is that I can only receive file as InputStream, but all text arguments, whic...
more »

2017-02-24 16:02 (1) Answers

Convert File type to Data URI - React-Dropzone

I am having trouble integrating React-dropzone with FeathersJS Upload I have successfully implemented the RESTful upload when you POST a datauri to my Upload endpoint. { uri: data:image/gif;base64,........} My issue is when selecting a file in reac...
more »

2017-02-10 04:02 (1) Answers

How to clear the file data from a multipart jsp

I have a JSP form with form property (In order to submit multiple files) as enctype = "multipart/form-data"; encoding = "multipart/form-data"; When the form get submitted I'm reading the form data as DiskFileItemFactory factory = new DiskFileIt...
more »

2016-11-17 06:11 (1) Answers