Closed Bug 510784 Opened 16 years ago Closed 16 years ago

It's not possible to clear filename/path in file upload forms without hard-refresh of the page, therefore losing contents in other text/file forms

Categories

(Firefox :: General, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 431098

People

(Reporter: carlos_alen, Unassigned)

References

()

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 After entering filenames/paths into file upload forms using the OS file chooser, it's not possible to clear those forms unless the user does a hard refresh (Ctrl + F5) of the page. Whenever the user tries to clear a file upload form the file chooser pops-up again, but it's not possible to clear the form. This is really inconvenient when the user has completed some other text forms and or upload forms in the same page but only wants to clear the contents of one of the upload forms. Reproducible: Always Steps to Reproduce: 1. Go to any page with text forms and file upload forms (e.g. Photo sharing sites, imageboards, etc.) 2. Fill in the text forms and choose at least 2 files to upload. 3. Try to clear the contents of one of the upload forms you just filled. 4. Notice it's not possible to clear file upload forms once they are filled up. Actual Results: It's not possible to clear file upload forms once they are filled up unless the page is hard-refreshed (Ctrl + F5), and then data entered into other text forms and/or file upload forms is lost. Expected Results: It should be possible to clear file upload forms once they are filled up without having to reload the page completely, therefore losing data in other text and file upload forms that were correctly filled up.
While we wait for something to happen to this bug, I added a workaround bookmarklet into the URL field of this bug that can be dragged to the bookmarks toolbar so you're able to click on it when at a webpage with multiple upload inputs, after which you can click on an upload you want blank, hit Esc to exit the file picker dialog, and hit Esc again (Delete and Backspace buttons also work) to clear the upload. Sorry that capturing the click event wasn't possible, and a mouseover event when tested on http://www.imagenic.net/ was too easily clearing many uploads at once by mistake.
URL: 8:0}&&a["type"].value=="file"){var n=...
(In reply to comment #1) Thanks a bunch! It's not perfect, but it's way much better than nothing. May Vishnu grant you happiness!
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.