Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Choosing an image on <input type="file"> makes the form do a GET instead of a POST

  • No replies
  • 6 have this problem
  • 6 views
more options

When choosing an image or a file, on an <input type="file"> control and submitting the form, the request being made is a "GET" request instead of a "POST". If i don't select an image, or if i alter the markup (add an input with a name somewhere in the form) before submitting the form, the request is "POST". This only happens in Firefox for android. The form has enctype set to: enctype="multipart/form-data"

When choosing an image or a file, on an <input type="file"> control and submitting the form, the request being made is a "GET" request instead of a "POST". If i don't select an image, or if i alter the markup (add an input with a name somewhere in the form) before submitting the form, the request is "POST". This only happens in Firefox for android. The form has enctype set to: enctype="multipart/form-data"