Moodle

Upload multiple Files (Bulk upload)

Details

  • Type: Improvement Improvement
  • Status: Open Open
  • Priority: Trivial Trivial
  • Resolution: Unresolved
  • Affects Version/s: 1.9, 2.0
  • Fix Version/s: None
  • Component/s: Course
  • Labels:
    None

Description

I' m not sure if this is the right place to post my suggestion, but i'll give it a try.
Moodle lacks a funtion to upload multiple files inside the webbrowser (i know webdav provides this functionality..).
So i tried to integrate swfupload (from www.swfupload.org) into the file-upload-site of moodle and
managed to make it work. Perhaps it's possible to take the code and integrate it in future versions of moodle.
You can find a short description of "moodle flashupload" here:

http://www.bildungstechnologie.net/search?SearchableText=&Title=&Subject%3Alist=Flashupload&sort_on=Date&sort_order=reverse

  1. flashupload.diff
    22/Dec/08 1:30 AM
    100 kB
    Anthony Borrow

Issue Links

Activity

Hide
Anthony Borrow added a comment -

I'm not sure what the plans are for 2.0. I do not remember reading anything about allowing multiple file uploads. I'm not sure if the patch attached with this issue is the solution but I would support it as a feature request/improvement. Peace - Anthony

Show
Anthony Borrow added a comment - I'm not sure what the plans are for 2.0. I do not remember reading anything about allowing multiple file uploads. I'm not sure if the patch attached with this issue is the solution but I would support it as a feature request/improvement. Peace - Anthony
Hide
Anthony Borrow added a comment -

Helmut - If swfupload.org code for multiple file upload is not incorporated into Moodle core, it could certainly enjoy a happy life in CONTRIB. Let's wait to hear what the other developers think about the idea and go from there. Peace - Anthony

Show
Anthony Borrow added a comment - Helmut - If swfupload.org code for multiple file upload is not incorporated into Moodle core, it could certainly enjoy a happy life in CONTRIB. Let's wait to hear what the other developers think about the idea and go from there. Peace - Anthony
Hide
Anthony Borrow added a comment -

I'm attaching a patch file including the swf file as a binary for 19STABLE. The modification to index.php is trivial but this allows folks to simply apply the patch and go. Peace - Anthony

Show
Anthony Borrow added a comment - I'm attaching a patch file including the swf file as a binary for 19STABLE. The modification to index.php is trivial but this allows folks to simply apply the patch and go. Peace - Anthony
Hide
Anthony Borrow added a comment -

Helmut - Here is how I would package the zip file. This makes the zip file such that the user can just extract it to their Moodle site (code root). It will overwrite the index.php so it assumes the latest version of Moodle 1.9 and requires more effort to keep the file updated as it gets modified in the tree but I think it really simplifies things for those wanting to try it out. Peace - Anthony

Show
Anthony Borrow added a comment - Helmut - Here is how I would package the zip file. This makes the zip file such that the user can just extract it to their Moodle site (code root). It will overwrite the index.php so it assumes the latest version of Moodle 1.9 and requires more effort to keep the file updated as it gets modified in the tree but I think it really simplifies things for those wanting to try it out. Peace - Anthony
Hide
Anthony Borrow added a comment -

I'm sure there are multiple forum discussions on this; however, this is the one that got me looking at this issue:

http://moodle.org/mod/forum/discuss.php?d=112867

Show
Anthony Borrow added a comment - I'm sure there are multiple forum discussions on this; however, this is the one that got me looking at this issue: http://moodle.org/mod/forum/discuss.php?d=112867
Hide
John White added a comment -

I've always thought that it is a bit archaic that you cannot simply select multiple files from one directory (using shift or ctrl/cmd), or select indeed a directory, so as to upload content swiftly.
I have certainly had content providers irate over this issue! But in the discussion Anthony refers to the expression 'showstopper to adoption' rather nails it!

Regards,
John

Show
John White added a comment - I've always thought that it is a bit archaic that you cannot simply select multiple files from one directory (using shift or ctrl/cmd), or select indeed a directory, so as to upload content swiftly. I have certainly had content providers irate over this issue! But in the discussion Anthony refers to the expression 'showstopper to adoption' rather nails it! Regards, John
Hide
Steven Church added a comment -

I am having major problems with this working on Mac OsX and Linux platforms. I can only guess it seems to be an issue with the flash uploader file and the distributions of flash on the subject Unix machines.

Is there a fix for this or any idea what could be causing this?

Show
Steven Church added a comment - I am having major problems with this working on Mac OsX and Linux platforms. I can only guess it seems to be an issue with the flash uploader file and the distributions of flash on the subject Unix machines. Is there a fix for this or any idea what could be causing this?
Hide
guy thomas added a comment -

YUI now has an uploader for multiple files built into it.
This should be the preferred method for adding this functionality as it requires no additional libraries.
I have implemented this in an "Add file / files" resource which wraps the standard "Link to file or website" resource.
If you are interested I will contribute the code.

Guy

Show
guy thomas added a comment - YUI now has an uploader for multiple files built into it. This should be the preferred method for adding this functionality as it requires no additional libraries. I have implemented this in an "Add file / files" resource which wraps the standard "Link to file or website" resource. If you are interested I will contribute the code. Guy
Hide
Tobias Hamacher added a comment -

We found out that files uploaded by flashupload could pass without beeing checked by our Virus-Checker (ClamAV). However, a test-virus uploaded via the "normal" upload-button was detectet and removed.

Show
Tobias Hamacher added a comment - We found out that files uploaded by flashupload could pass without beeing checked by our Virus-Checker (ClamAV). However, a test-virus uploaded via the "normal" upload-button was detectet and removed.
Hide
Petr Škoda (skodak) added a comment -

hmm, there are more security issues, I would strongly discourage anybody to install this on production servers, sorry

Show
Petr Škoda (skodak) added a comment - hmm, there are more security issues, I would strongly discourage anybody to install this on production servers, sorry
Hide
guy thomas added a comment -

Flash is not a great tool for multiple file uploads because it uses its own http transport.
This means that it is a completely separate user agent from the browser.
So you don't have a valid session when the files get uploaded.
The work around I have come up with is basically to create "flash upload keys" which are generated via ajax (so it goes over the browser's http transport).
Then when flash uploads the files a php file on the server checks to see if there is a valid "upload key" corresponding to the file name.
Its not a great solution but it is better than just letting Flash upload anything.
The real solution to multiple file uploads is to use HTML5.
Again, another reason for why Flash sucks.

Show
guy thomas added a comment - Flash is not a great tool for multiple file uploads because it uses its own http transport. This means that it is a completely separate user agent from the browser. So you don't have a valid session when the files get uploaded. The work around I have come up with is basically to create "flash upload keys" which are generated via ajax (so it goes over the browser's http transport). Then when flash uploads the files a php file on the server checks to see if there is a valid "upload key" corresponding to the file name. Its not a great solution but it is better than just letting Flash upload anything. The real solution to multiple file uploads is to use HTML5. Again, another reason for why Flash sucks.

Dates

  • Created:
    Updated: