Skip to content

fire2/resteasy-multipart-multiple-files

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rest-client-reactive-quickstart

To reproduce, start the demo:

mvn compile quarkus:dev

Test the different scenarios:

Server: test multiple files upload with same part name (supported):

curl -X 'POST' \
  'http://localhost:8080/hello' \
  -H 'accept: */*' \
  -H 'Content-Type: multipart/form-data' \
  -F 'resources=@src/main/resources/img1.jpg;type=image/jpeg' \
  -F 'resources=@src/main/resources/img2.jpg;type=image/jpeg'

Output:

img1.jpg: 38149; img2.jpg: 58320; 

Client: test multiple files upload with same part name (NOT SUPPORTED):

curl -X 'GET' \
  'http://localhost:8080/hello' \       
  -H 'accept: */*'

Output (empty) because files are not written to the request:

Client: test single file upload (supported):

curl -X 'GET' \
  'http://localhost:8080/hello/single' \
  -H 'accept: */*' 

Output:

img1.jpg: 38149;

About

Demonstration of how the Resteasy Reactive client does not support List<File> while the server supports List<FileUpload>

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages