Corrupt form data: premature ending

后端 未结 5 2022
清酒与你
清酒与你 2020-12-10 10:14

I am trying to upload files using the FileReference class. Files >2MB all work correctly but files <2MB cause this error:

\"java.io.IOException: Co

5条回答
  •  無奈伤痛
    2020-12-10 10:29

    The reason of this is because the request is been sent with a "Transfer Encoding: chunked" header, instead of a Content-length header. Many servers don't understand chunked content, and neither does o'reilly. Check with a sniffer if your request is been send with the Transfer encoding header. I don't know any solution for this.

提交回复
热议问题