Page MenuHomePhabricator

[SF] User must be prevented from uploading until JavaScript finishes loading
Closed, ResolvedPublicBUG REPORT

Description

video of clicking the upload link before JS loads in Opera

If the user tries to upload a file before SF's JavaScript fully loads, the upload will succeed, but the uploaded file will be "lost", as described here:

http://www.mediawiki.org/wiki/Extension_talk:Semantic_Forms#Upload_not_inserting_images_into_forms

In short, semantic data can't be applied if the user clicks the upload link before the JavaScript fully loads, because the upload popup displays full-page instead of as a popup.

The solution to Bug 32424 might also solve this problem. Basically, the upload field and link should only be shown in certain circumstances. By using JS to display the link, the user will have to wait for the JS to load before they can use it.

I tested this bug in Opera and Google Chrome. I was able to duplicate it in Opera, but not in Chrome. A short video screen capture is attached.


Version: unspecified
Severity: normal

Attached:

Details

Reference
bz35642

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 12:17 AM
bzimport set Reference to bz35642.

I propose that the Upload button should be disabled by default and enabled for working at the end of Javascript file.

Edit: Nevermind, it was already solved I guess.

Aklapper triaged this task as Low priority.Feb 4 2022, 8:07 PM
Aklapper changed the subtype of this task from "Task" to "Bug Report".
Yaron_Koren claimed this task.
Yaron_Koren subscribed.

I think this is fixed...