Last modified: 2011-11-17 19:50:00 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T26759, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 24759 - Upload wizard: Improve progress bar
Upload wizard: Improve progress bar
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
UploadWizard (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Ian Baker
:
: 30242 (view as bug list)
Depends on: 29250 30244
Blocks: 27800
  Show dependency treegraph
 
Reported: 2010-08-11 19:15 UTC by Guillaume Paumier
Modified: 2011-11-17 19:50 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Guillaume Paumier 2010-08-11 19:15:10 UTC
- Add progress bar for compatible browsers
- Fix inconsistency for the others (some testers reported increasing instead of decreasing countdown)
Comment 1 Guillaume Paumier 2010-08-11 20:03:22 UTC
Maybe we should just display the progress bar when we have reliable data (most recent browsers) and not display it at all when we don't?
Comment 2 Neil Kandalgaonkar 2010-08-11 20:21:29 UTC
It is possible for the countdown to increase if the program thinks that the uploads are going slower. That said it does sound like a bug.

It isn't a matter of reliable data, exactly; some modern browsers can tell us how the upload is progressing as it is happening. 

With older browsers we have to wait for at least one upload to complete first. In the case of uploading just one file, we never get to show the progress bar.
Comment 3 Brion Vibber 2011-08-05 12:32:30 UTC
We don't currently seem to display an upload progress bar at all, but just a spinner. Is bug 30242 a dupe of this, or is this something separate...?
Comment 4 Neil Kandalgaonkar 2011-08-05 16:29:43 UTC
There is a progress bar. It's actually constantly polling all the uploads for progress info and trying to display a summary result.

But it only shows when there is some information about how well uploads are progressing. At the moment, that only occurs after the first upload has completed. If you're uploading a single file, you won't see the progress bar. And if you upload small files or less than three files, the files will probably complete at about the same time anyway, so the progress bar won't show up.

However, Chrome and other modern browsers offer ways to know how the upload is progressing, even in traditionally submitted POST-to-iframe uploads. And of course the FileAPI / chunked method will give us even more info. So we just need to write a few more lines of code here to get a working progress bar.
Comment 5 Neil Kandalgaonkar 2011-08-08 18:01:14 UTC
*** Bug 30242 has been marked as a duplicate of this bug. ***
Comment 6 Bugmeister Bot 2011-08-19 19:12:34 UTC
Unassigning default assignments. http://article.gmane.org/gmane.science.linguistics.wikipedia.technical/54734
Comment 7 TMg 2011-09-18 10:49:39 UTC
Currently I never see a progress bar. Even in very simple cases when I upload a single large file it shows no progress. Only the spinning indicators. While testing there was only a single case where the progress bar showed up: When uploading a small and a big file, the progress bar was shown for a short time after the small file was finished but the large file was not. I don't know if this is a browser issue (Opera 11.51) but I expect it to work in all modern browsers including this one.

I found several issues, a lot minor and a few major, all described here (including this one):
http://commons.wikimedia.org/wiki/Commons:Prototype_upload_wizard_feedback#Not_usable_at_all_due_to_security_errors_and_other_exceptions
Comment 8 Brion Vibber 2011-09-19 16:05:39 UTC
The basic HTML-form-submission upload system doesn't actually provide a good way to do a progress bar for any individual file, which is probably why you only see a progress bar to track how many files have been uploaded out of a batch.

As noted in some comments above, we'll be able to do a progress bar _during_ each individual upload on many -- but not all -- browsers once chunked uploads are supported on both the upload API and UploadWizard's front-end code. This will upload the file in smaller pieces over multiple requests, which is both more resilient to network errors (can simply reconnect & continue if any individual chunk fails) and will be able to track the upload progress directly from the JavaScript.
Comment 9 TMg 2011-09-26 20:53:34 UTC
(In reply to comment #8)
> The basic HTML-form-submission upload system

I don't get it. I'm talking about the upload wizard, not about the basic upload form. Currently the progress bar in the wizard is broken because it is almost never shown except for some uncommon cases when multiple files are uploaded and the last file is bigger than all other files. In most cases the only thing I see is some flickering bar where the progress bar should be. It's flickering for the fraction of a second in the moment the upload is finished. I know the progress bar worked a lot better in the same browser some months ago when I tested the upload wizard first.
Comment 10 Brion Vibber 2011-09-26 20:57:41 UTC
What we're talking about isn't what it *looks like* but *how the file is transferred from your browser to the web server*.

How that is done makes a difference to what progress data we can report.
Comment 11 TMg 2011-09-26 21:11:02 UTC
I'm pretty sure nobody cares about this. The file is uploaded with the upload wizard. Why is there a difference between uploading a single file and uploading multiple files? If there is a progress bar, why is it missing when uploading a single file? Why is it displayed for the fraction of a second (that's what i call "flickering") in the moment the upload of the file ended? When uploading two files, why is it missing when uploading the first file but displayed when uploading the second file? This is confusing. If it's impossible to add a reliable progress bar, remove it please.
Comment 12 Brion Vibber 2011-09-26 21:18:44 UTC
Right, that's the subject of this bug report.
Comment 13 Neil Kandalgaonkar 2011-11-17 19:50:00 UTC
Not sure if our progress bar is "reliable" but it more or less works now, even with multiple files, in modern browsers.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links