Home
The Toolkit for Online Communities
15903 Community Members, 0 members online, 2073 visitors today
Log In Register

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

OpenACS Home : Forums : .LRN Q&A : .LRN Homework dropbox download - single click

Icon of Envelope Request notifications

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!

+
Posted by Matthew Coupe on
Hi,

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

Cheers

+
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).

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

Looks like this will work, thanks a lot.

+
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!!

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