CodeIgniter Forums
Organizing uploads using the Uploads Class - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forum-21.html)
+--- Thread: Organizing uploads using the Uploads Class (/thread-46643.html)



Organizing uploads using the Uploads Class - El Forum - 11-09-2011

[eluser]Unknown[/eluser]
I am working on a project that uses the File Upload Class. It's pretty standard and straightforward based off the user guide. I am looking to extend it further by organizing the files during the upload.

My ideal situation would be to take the files that are uploaded and create a directory slug. Each upload would create a new folder(referenced as "instant" below) which would hold the contents.

Code:
uploads/instance/files.extension

Wondering if anyone has done something like this. Thanks!