Hi there, I am new to Drupal and I'm not sure if I have understood the concept of attachment totally.
My main problem is:
How can I delete the files you once have uploaded with the attachment module. If I delete the attachment from the node where I have uploaded it, the file itself is still physically on the server (which is ok, I think, but:). If I now want to delete the files manually via ftp I can't do it because I've got an 550 server error (Permission denied).
So: what else I have to do to make a manual deletion of files possible?
Thanks in advance for any help.
Comments
Comment #1
agentrickardThis is more a server permissions question than a Drupal question.
When you FTP to delete the files, you should be using an account that has read/write permisions on all files within the /files directory. Then you should be able to delete the files.
Sadly, my *nix knowledge isn't good enough to walk you through that.
Comment #2
ronsens commentedThanks.
Yes, you're right, it has to do with the rights of the ftp-account, but: as far as I know I have that rights. For example I can change the permission settings of each file in my whole drupal installation via ftp, except the ones I have uploaded with the attachment module. That is the strange thing, I don't understand (I have no idea of Unix / Apache-things too). So, I still don't know how I can delete these files I don't need anymore...
I think it would be a good idea, if you could delete files through drupal (that would be real file-handling) - you should only allow it to admins and defined roles of course. But I haven't seen any module that can do that.
Comment #3
drewish commentedronsens, you can (read: should be able to, but you never know, you may have found a bug) delete them from the edit form. check the checkbox in the delete colum an then save the form. the file should be deleted.
Comment #4
drewish commentedSince there's been no response, I'm going to assume that ronsens was able to figure it out.
Comment #5
(not verified) commented