Hiển thị các câu hỏi được đánh dấu: Xem tất cả các câu hỏi

Firefox multipart/form‑data upload stalls (0 bytes sent) to Next.js pages/api endpoint — works in Edge/Chromium

Summary: Uploading a file to a custom webapp with Chromium (Edge) works but consistently fails in Firefox. In Firefox the request is created, and times out. The server re… (xem thêm)

Summary: Uploading a file to a custom webapp with Chromium (Edge) works but consistently fails in Firefox. In Firefox the request is created, and times out. The server receives no file and logs “missing file.” The same webapp code is running on both Chromium and Firefox.

Environment:

  • Next.js app (pages/api route)
  • Endpoint: POST /api/file-upload
  • Client: fetch(url, { method: "POST", body: FormData, credentials: "include" })
  • Server: export const config = { api: { bodyParser: false } } + multipart parsing (formidable)
  • Edge/Chromium: Version 141.0.3537.85
  • Firefox Version 147.0.3 (64-bit)
  • OS: Ubuntu 22 / Linux

Steps to reproduce:

  1. Create a FormData object and append a local file:
  const fd = new FormData();
  fd.append("template", file, file.name);
  fetch(`/api/file-upload`, {
    method: "POST",
    body: fd,
  1. In Edge/Chrome, upload succeeds. Server receives multipart body and parses the file. Actual behavior in Firefox:
  • Transferred: 0 B
  • No response status/body
  • Client times out (Upload times out)
  • File upload request received
  • No bytes read server‑side.

Evidence:

  • Edge request logs:
    • content-type: multipart/form-data; boundary=----WebKitFormBoundary...
    • bytesRead ~1.69MB
  • Firefox request logs:
    • Transferred 0 B
    • File upload missing file field

Notes:

  • Client FormData is valid; we log file.name and file.size right before fetch.
  • There is a CSP report‑only warning (frame‑ancestors) when using a fallback iframe approach, but we are not using iframe in the failing case.

Question: Is there a known issue where Firefox blocks or fails to send and multipart/body can be stripped before it leaves the browser? Is there a recommended workaround that does not rely on browser sniffing?

Moderator note: This question has been edited to correct the formatting.

Được hỏi bởi Jeff R 22 giờ trước

Lần cuối trả lời bởi Denys 18 giờ trước

баг браузер не реагирует на ввод текста

После включения ПК бывает, что я не могу ввести текст в браузере.(как буд-то включается режим только для чтения, что не позволяет текст ввести). горячие клавиши работают,… (xem thêm)

После включения ПК бывает, что я не могу ввести текст в браузере.(как буд-то включается режим только для чтения, что не позволяет текст ввести). горячие клавиши работают, но текст не вводиться только в браузере. Оно само по себе проходит. Как это исправить?

Được hỏi bởi Vladoodle 21 giờ trước

Lần cuối trả lời bởi Denys 18 giờ trước

Installation of Firefox latest browser

I seem to be unable to install Firefox on my Windows 11 desktop because there is apparently an old version already on my computer. I wish to reinstall Firefox with your h… (xem thêm)

I seem to be unable to install Firefox on my Windows 11 desktop because there is apparently an old version already on my computer. I wish to reinstall Firefox with your help

Được hỏi bởi John Smith 1 ngày trước

Lần cuối trả lời bởi Denys 22 giờ trước

PDF Security Settings are being ignored by Firefox

Why has Mozilla decided to COMPLETELY IGNORE security settings applied to PDF documents? I have a number of PDFs secured so as to prevent the ability to print or copy tex… (xem thêm)

Why has Mozilla decided to COMPLETELY IGNORE security settings applied to PDF documents? I have a number of PDFs secured so as to prevent the ability to print or copy text. When opened with Firefox, all of these settings are ignored.

Được hỏi bởi pmarangoni 2 ngày trước

Lần cuối trả lời bởi TyDraniu 1 ngày trước

Merriam-Webster site not working

Hi there, I am trying to access this site: https://unabridged.merriam-webster.com/ I am logged in on the site with my membership, which is up to date. But whenever I tr… (xem thêm)

Hi there,

I am trying to access this site: https://unabridged.merriam-webster.com/ I am logged in on the site with my membership, which is up to date.

But whenever I try to search a word, it redirects me to the login page. I can only assume that something is wrong with my cookies, privacy settings, and extensions in Firefox. After having cleared my cache, allowed cookies for the site in question, and messed around a bit more with my settings, the problem persists.

This is not happening for any other sites. Can you help? Thank you!

Được hỏi bởi Ellis 2 ngày trước

Lần cuối trả lời bởi Denys 1 ngày trước