Forum .LRN Q&A: .LRN Homework dropbox download - single click

Hi everyone,

I was hoping someone might be able to help me out. Is it possible to donwload the entire contents of the homework folder in a single click, as it is with the contents of a file storage folder for instance? If so, does anyone have some nice code for doing this as it is causing us some problems to have to individually download 500+ assignments for moderation.

Thanks!

Collapse
Posted by Matthew Coupe on
Hi,

I just wanted to bump this up really? See if anyone is doing this yet?

Cheers

Collapse
Posted by Cato Kolås on
hi,

you could in homework provide a link to /dotlrn/classes/x/y/y-2011/file-storage/download-zip?object_id="folder_id" and substitute folder_id with the folder_id from homework. It's probaly not the right way, but it seems to work (tested in version 2.4.0 / 2.4.1).

Collapse
Posted by Matthew Coupe on
Wow, so far so good!

Looks like this will work, thanks a lot.

Collapse
Posted by Matthew Coupe on
My link was this:

file-storage/download-archive/index?object_id=OBJECT_ID

but it worked like a dream, thank you so much, no more downloading 1000 assignments 1 by 1!!

Collapse
Posted by Cato Kolås on
no problem, just glad I could help :)