Closed (fixed)
Project:
PDFPreview
Version:
6.x-1.0
Component:
Code
Priority:
Major
Category:
Feature request
Assigned:
Reporter:
Created:
13 Apr 2012 at 15:20 UTC
Updated:
22 Apr 2012 at 12:11 UTC
When I delete a node containing a PDF file and PDFPreview-generated image, the PDF file was correctly removed, but the PDFPreview-generated image remains, and I can't delete it.
If I removed an attached file, or delete an node with an associated PDFPreview-generated image, shouldn't the image be removed too? Otherwise, how do I remove it?
Comments
Comment #1
juanjo_vlc commentedRemoving images is not implemented yet. I'm sure it has to be done on file deletion, so when you remove a file from a field, the corresponding preview is also removed.
I will set the priority to high.
Comment #2
iantresman commentedThanks, that would be very useful. As a workaround, I am using the IMCE file manager to delete the image, as FTP will not let me due to incorrect permissions.
Comment #3
juanjo_vlc commentedProbably your drupal generated files have different owner because your web server is not running with the same user you use to upload your files, this is a very common problem on shared hosting. If you are concerned about security, try to open other users folders, if you didn't get a "open_basedir_resctriction" error, change hosting.
Comment #4
juanjo_vlc commentedNow images are removed when you remove the original file deleting the node or deleting the file from the node. It is archieved using hook_file_delete.
Comment #5
juanjo_vlc commentedNow images are removed when you remove the original file deleting the node or deleting the file from the node. It is archieved using hook_file_delete.
Comment #6
iantresman commentedExcellent, I'll download the update and give it a try.