Public service announcement
I know I’m supposed to be on Tumblr hiatus, but I felt like sharing this.
If you have two forms, form A and form B (with method = POST), and form A has an enctype of multipart/form-data (typically used for file uploads) and a file input, and each has a submit button, Firefox gets confused as to which form to submit in the following fashion:
If you click form A’s submit button and omit a file in the file input, it will, correctly, submit form A. However, when you choose a file, then click submit in form A, form B actually gets submitted.
This is not good.
The solution: add an id attribute to each form and the behavior seems to go away. I have yet to test this in Safari or Camino, but I’m hoping adding id fixed the problem once and for all.