"Image failed to delete" - how to manually delete an image

One of my users uploaded a photo with the filename of "8 X 2.5 Table.JPG". It shows up in the directory as "8\ X 2.5\ Table.JPG" and this is the filename ZenPhoto assumes it to have, but it doesn't show a thumbnail and when I click on delete, it won't delete it. The file is owned by apache, I can delete other photos with the same permissions in this directory, so I'm guessing it has trouble with this file name.

What tables will I need to write a query to in order to delete this properly from the database and is there a module for Zen Photo that I can add to make sure people don't upload files that don't fit within a filename structure ZP expects?

Thank you in advance for your time.

Comments

  • If you use FTP to delete the image from the albums folders you can then use the `refresh database` button to get rid of any database record. With the 1.1.5 release there will is a function that sanitizes the names of files uploaded by zenphoto. But, of course, it is unable to do anything about files uploaded by FTP.

    If you want to purge the record yourself, it is in the <prefix>images table of the database. But first you must delete it from the file system or it will just come back into the database.
  • I've got this same problem, but I can't delete it with FTP or ZP Admin. You're saying I can't delete it through the database either ? There must be some way I can get rid of thess images or rename them .........
  • If you can't delete through FTP you need to contact your ISP for support. FTP has nothing to do with Zenphoto.
Sign In or Register to comment.