Upload progress/status

Upload progress/status

by evelien roos -
Number of replies: 7

Hi,

I think it would be great to have some sort of progress or status display when uploading files.
Especially usefull when uploading big files. When you upload a big file there's no way to check if you're upload is being processed rightfully.
The only way you will notice something is when Moodle has finished uploading.

Average of ratings: -
In reply to evelien roos

Re: Upload progress/status

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
I looked into this once and found a solution but unfortunately it is simply not possible to do this with PHP only.  It would be nice to have this as an option in the new DMS perhaps.
In reply to Martin Dougiamas

Re: Upload progress/status

by Paul Norrod -
Martin, I don't know if they use any "tricks", but Gallery (gallery.menalto.com) displays the little window shown below while the photos are uploading.  Of course, it does not show the upload progress, but it does animate the arrows to indicate that uploading is going on.  Just thought I would pass it along in case you were not aware of it.
 
Attachment SP32-20040328-212212.jpg
In reply to Paul Norrod

Re: Upload progress/status

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
A little animated GIF like that would certainly be an improvement if the progress bar turns out to be too hard.  Thanks for the pointer.
In reply to Martin Dougiamas

Re: Upload progress/status

by Robert Crane -

This is all we see. I am uploading a 180 mb file and there is no way of knowing how far it has progressed, or even if it has at all.

Moodle Uploader Issues

In reply to Robert Crane

Re: Upload progress/status

by Derek Chirnside -

Today, just facing this same question of no indication of file upoload progress I did a little Googling.

Tim, here: http://moodle.org/mod/forum/discuss.php?d=133798 said it would be part of 2.0, but I think that is old news.

A seemingly current tracker item is here: http://tracker.moodle.org/browse/MDL-19320

There is a definite problem, both commented on by the wonderful Dongshen Cai:

QUOTE:-------------------------------------------------

This one is difficult because of the php nature, when uploading a file to php script, the server won't return any response until it's done, so we don't actually know the progress, however there are possible solution:

  1. Use php extension http://pecl.php.net/package/uploadprogress
  2. Use flash to track uploaded file contents, so we could calculate the progress
  3. when uploading we triggered an ajax call to request uploaded file contents, this still need extra php extionsion (APC if I remember correctly) because, the uploaded files locate at /tmp with random name, we don't know it until uploading finished.

Note: yes, APC is correct, see this comment by Guy Thomas.

-------------------------------------------------------

And the latest News, this can be done with PHP v 5.4.  Also from Dongsheng:

QUOTE:-------------------------------------------------

PHP 5.4 introduced upload tracker in session, so we no longer require flash or php extension to support this feature. But we have wait until moodle requires 5.4 as minimal version...

http://php.net/manual/en/session.upload-progress.php

-------------------------------------------------------

So it needs a little fix, which is possible, but no-one has really been annoyed enough yet.  Want, you can of course go in and vote.

-Derek

In reply to Derek Chirnside

Re: Upload progress/status

by Mari Cruz García -

Hello Derek,

This is the kind of feature I am looking for. Is there any progress on this?

 

Regard