IE 11: Error while sending Multipart Form Data request: Stream ended unexpectedly

前端 未结 4 1345
挽巷
挽巷 2021-02-08 14:05

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         


        
4条回答
  •  没有蜡笔的小新
    2021-02-08 14:27

    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

提交回复
热议问题