搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

Firefox cannot parse multipart/form-data

  • 無回覆
  • 1 有這個問題
  • 5 次檢視
more options

Hello,

I am writing a server that answers to a POST request with a multipart/form-data message. On the client in Javascript I then want to access the form-data via the usual response.formData() function.

Alas I seem to make something wrong when creating the mulitpart message, Firefox always complains with "Cannot parse FormData".

Is there a way to get Firefox to be more verbose and log the actual problem why it cannot parse the response? That way I could try to fix my server.

Hello, I am writing a server that answers to a POST request with a multipart/form-data message. On the client in Javascript I then want to access the form-data via the usual response.formData() function. Alas I seem to make something wrong when creating the mulitpart message, Firefox always complains with "Cannot parse FormData". Is there a way to get Firefox to be more verbose and log the actual problem why it cannot parse the response? That way I could try to fix my server.