I am trying to upload files along with some other form fields using jQuery AJAX calls.
This is a common function that calls the URL on the server:
functi
I had the same problem. I was having only the id attribute and missing the name attribute in the hidden input field which gave me the below error. Issue resolved after adding the name attribute to the input hidden type field.
id="timestamp" name="timestamp"
Caused by: org.apache.commons.fileupload.MultipartStream$MalformedStreamException: Stream ended unexpectedly Caused by: org.apache.commons.fileupload.FileUploadException: Stream ended unexpectedly