I understand now.
The problem with image deletes is almost assuredly based on permissions. When a user uploads a file through FTP, the file "belongs" to the user who uploaded it -- whatever username was used for the FTP. The normal permissions for the file are 644, which means that the user can read and write to the file, but everyone else can just read it.
When the script is run, the user is "nobody." In order for "nobody" to be able to delete the file "he" must have write permission. To allow the "nobody" to have write permission on a file uploaded by somebody else, the permission for the file must be 666.
(I learned about this with the file-upload mod. Without the files having their permissions set to 666 at the time of uploading, I couldn't delete the file from my own webspace by FTP. I had to delete them through the script.)
------------------
JPD
The problem with image deletes is almost assuredly based on permissions. When a user uploads a file through FTP, the file "belongs" to the user who uploaded it -- whatever username was used for the FTP. The normal permissions for the file are 644, which means that the user can read and write to the file, but everyone else can just read it.
When the script is run, the user is "nobody." In order for "nobody" to be able to delete the file "he" must have write permission. To allow the "nobody" to have write permission on a file uploaded by somebody else, the permission for the file must be 666.
(I learned about this with the file-upload mod. Without the files having their permissions set to 666 at the time of uploading, I couldn't delete the file from my own webspace by FTP. I had to delete them through the script.)
------------------
JPD