I am looking for some direction on uploading many files at once and creating a photo item for each file. I already have a 'photos' module and an 'albums' module.
I know about the 'multifile' class that I can add to an upload field. The problem comes down to having to add a photo item individually in order to put it into an album. It is rather tedious and I would like my client to be able to add multiple photo items at one time.
Comments
All that said, I've put it on the list of features to look at for upcoming releases.
http://blog.observationpoint.org/post/169674727/multiple-file-upload-support-in-safari-4-public-beta
http://codeigniter.com/forums/viewthread/110130/
I'm thinking:
- A module with an upload field with the 'multifile' class.
- Upon submission of the form a loop adds each file as a row to the 'photos' table.
Last night, though, I was not able to get the multiple file array. Going to start playing with it to see what I can come up with.
Thoughts on my solution?
As an FYI, the file fuel/modules/fuel/controllers/module.php has a method of _process_uploads() (near the bottom), that has the logic for processing file uploads if you want a reference.