Regarding this particular post, I think I’m in agreement with Jorg’s post above. As a gallery grows in size, it’d be nice to have that structure retained in /uploads/ so that pictures can easily be added. Another issue along the lines of a large gallery is having all of the uploaded pictures stored in the /images/ folder. I think it’d be beneficial (for usability and administration) to also create a folder structure in /images/ for organizing the pictures.
Great work!
]]>Plogger uses several file-system manipulation functions: rmdir(), mkdir(), rename(), and unlink(). From the manual, PHP safe mode
Checks whether the files or directories you are about to operate on have the same UID (owner) as the script that is being executed.
Since all the scripts are setup during installation to have the same UID as the folders that Plogger manipulates, these functions should still be allowed to execute.
]]>My first thought was that you could choose the /upload/ strategy, but when importing, you leave the folders in the /upload/ directory behind as an empty shell. (Possibly adding a prefix COL/GAL to the folder names?) That way users will be able to see their own gallery/collection-structure when uploading but not be able to mess up the file-structure. If the user changes something in the /uploads/ directory manually or just adds a new folder, all that happes is that new collections or galleries are made at the next import. If the user uploads images into a folder which allready exists (i.e a gallery with that name exists) then the images are just added to that gallery.
How does that sound?
]]>