I have a RESTful Jersey web service under Glassfish that accepts incoming POST requests to download images while consuming MediaType.MULTIPART_FORM_DATA, which maps to mime type multiplayer.
When I get a copy FormDataContentDisposition fileDetailin my service and callfileDetail.getSize()
I always get -1
I wonder how to choose the right file size using file uploads using Jersey and Multipart.
source
share