Just tried the module out, very nicely done. For some reason, however, the progress bar doesn't slowly move up green. It might be something on my end, however.

CommentFileSizeAuthor
#2 swfupload_progressbar.patch2.42 KBrobloach

Comments

wmostrey’s picture

Priority: Normal » Critical

I have the exact same issue. The message remains "Uploading file 1 of 1" and the background remains yellow. The file is not uploaded. Not only that, but I am logged out after this as well.

robloach’s picture

Status: Active » Needs review
StatusFileSize
new2.42 KB

The problem stems from the Javascript not knowing where progressbar.png is. Since it's statically set to "modules/swfupload/progressbar.png" in the uploadProgress function of callbacks.js, if your SWFUpload module isn't in that location, the progress bar won't work.

The attached patch uses a Javascript variable instead named "progressbarimage", which is set by Drupal in SWFUpload.module. It will output the correct location where the image is, which will then make the progress bar function correctly.

robloach’s picture

Whoops, that patch also includes the Path fix.

robloach’s picture

Assigned: Unassigned » robloach
Status: Needs review » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)