Forum OpenACS Q&A: Re: Volunteer for putting back /storage

Collapse
Posted by Torben Brosten on
Bulk uploading from the local file system should work well. It bypasses having to deal with possible connection time-outs with the browser etc.

ecommerce package's Bulk Product Image Loader[1] imports images from the local file system in a similar way. One would just import a file with line item values that meet file-storage/www/file-add specs instead of ecommerce (sku)...

Since it's rare enough and admin access is necessary, just create a file-storage/www/admin/bulk-import-files-from-local page

1. http://cvs.openacs.org/cvs/openacs-4/packages/ecommerce/www/admin/products/import-images.tcl?view=markup

Collapse
Posted by Malte Sussdorff on
I just wrote and committed folder-add.tcl which allows you to add a folder from the filesystem, actually working recursively (at least it should, no time to test yet). This is on 5-2, as OpenACS resides on 5.2. I just used folder-zip-upload.tcl and took out the code of extracting the zip file. Rest worked like a charm.

So, if someone uploads the old content to the filesystem and updates the file storage application, we should be fine.

Collapse
Posted by Malte Sussdorff on
This code has been rolled back, please go and visit the attic (http://cvs.openacs.org/cvs/openacs-4/packages/file-storage/www/Attic/ file: folder-add*)if you are interested in this code or ask someone from the OCT (except me) to revive a copy.