Download & Extend

Upload progress meter

Project:Audio
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs work

Issue Summary

Some files can take many minutes to upload so I think it would be a good idea to have an upload progress meter to tell the user which % of the upload has uploaded.

Comments

#1

yeah, it'd be nice but it's more javascript than i'm interested in working on. if anyone wants to submit a patch...

#2

http://drupal.org/node/90163 is a dupe of this

#3

Shouldn't this be an issue with the Upload module in core?

I would like a upload progress meter for ALL uploads... ;)

This is the closest thing I have found, PHP & Javascript (AJAX): http://www.devpro.it/upload_progress/

#4

just thinking out loud here, I'm guessin there is no way to tie it in with the drupal update.php progress bar ? that is already used in drupal ?

#5

With JQuery in Drupal 5 core it should be much easier to implement this by now. Any interest still?

#6

Version:4.7.x-1.x-dev» 5.x-2.x-dev

i'm not sure. the problem is that when a file is uploaded we parse out all the metadata to fill out the fields. having an ajax progress bar would in some ways defeat workflow... and i don't know enough javascript to know the "right" way to do it.

#7

Subscribing.

#8

SWFUpload solves this problem. We should intagrate it into cck, imagefield needs it too...

#9

There is already a working patch implementing a progress bar in imagefield = http://drupal.org/node/132233#comment-690899

#10

Is there any way to implement that patch to AUDIO module? That patch work for AUDIOFIELD, but i need that in audio module.

There is a big diference. In audiofield, imagefield or every field, there is an upload button underneath, but in audio module there is only submit button. So is there any way to integrate upload progress meter?

Thanks.

#11

subscribe

#12

need the same, did you get this working?

#13

Version:5.x-2.x-dev» 6.x-1.x-dev

#14

I would like this - audio files tend to be large and without some indication that the transfer is in progress, more less tech happy people will just feel its not doing anything. Even some kind of "Your file is currently uploading" indicator would be useful - could this be easier to implement? Only wish I could help with the development as this is a great module :)

PS - I would need this for 5.x AND 6.x...

#15

i've looked into this a bit and the only way to actually show progress is by having a flash applet that does the actual file uploading. but in any case this definitely won't be backported to D5.

#16

Status:active» needs work

Good news to all those who are still using the audio module instead of audiofield!

Over the past weekend at Columbus GiveCamp we started and added this functionality to audio.module. We branched off of HEAD and created the GiveCamp-WCRS repository on github.com.

It supports both uploadprogress and theoretically APC, but the latter is not tested. It works best with getid3 functionality enabled.

Known Issues:

  1. The AHAH callback, audio_ahah, for rebuilding audio_form doesn't seem to be correct. For some reason the $form_state['redirect'] in node_form_submit isn't firing and we're being redirected back to the form. To work around this I added drupal_goto statements after _audio_save. This isn't good practice, but it was the only way I could get it to work.
  2. Edit: I guess I should note that we added the upload button, but it may not work when just clicking on Save.
  3. We were unable to get this working on the shared host, dreamhost. PECL uploadprogress reports as working, but does not in fact work for either filefield or audio. Since adding extensions to custom php.ini or adding APC to PHP on dreamhost is unsupported there's not much we could do in three days.

Patching:

  • To generate a patch, clone from git and run git diff 636fc2f > audio-80390.patch
  • To patch, run patch -p1 < audio-80390.patch in your sites/all/modules directory or -p2 from within the audio/ directory.

Most of the changes are to audio_form.

AttachmentSize
audio-80390.patch 12.61 KB

#17

Thank you very much. Its working fine....

nobody click here