-
Notifications
You must be signed in to change notification settings - Fork 55
Problem with updates and deletes #24
Comments
+1 problem exists. Uploading file adds it to |
For future reference, until this problem is fixed it is best to use a post-hook to delete it manually. Something like this should do the trick:
|
Yeah, this is very problematic for my current set up. On remove hook, is all fine, but what if trying to delete an image when editing a post ? In that case, the updateItem method of FileType is call, and no way of hooking there, so I cant delete my images on S3... :( |
I'm trying to delete a file when it is removed or switched, and not only when the entire document is deleted. I know I can use a pre save hook to get an opportunity to delete the file, but I need the old value. I was thinking that I could get the old value by storing it while in a setter, but this hasn't worked.
Before I include this setter, it seems that the filename is added on the object as normal, but with the setter it is no longer added. Is my setter perhaps conflicting with one added by this project? (I haven't looked into this yet, I was wondering if anyone else has tried this). |
This is still an issue or am I missing something? I cannot remove images from S3 at all... As mentioned above it removes db entry but does not fire |
+1 |
Hi,
I am newbie with nodejs, so I dont understand my problem.
When I create a new document that contains a s3 file all is ok but if I modify this document ( I modify the file) or I delete the document the associated file dont dissapear over S3.
Whats happen? Configuration problem? Any suggest?
Excuse me for my bad English. Thanks in advise
The text was updated successfully, but these errors were encountered: