CodeIgniter Forums
Organizing uploads using the Uploads Class - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Organizing uploads using the Uploads Class (/showthread.php?tid=46643)



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!