Open vonba opened 2 years ago
you have to do this in the afterOperation
hook.
@gautamsi thank you for reply. Does the library expose any function for setting up a connection to S3 and deleting the file?
Or would I need to implement something in parallel with the aws-sdk or similar?
Not really, you can hel set this up in a PR
Got it, I'll look into it because I will be needing this feature. What are you using under the hood to connect with S3, are you using an existing package for this?
it is based on aws-sdk
This is also the case for Azure blob storage - I'm assuming it's a similar story?
right, no support for deletion. but you can always delete them by calling aws-sdk directly
When I delete an object from Keystone, uploaded files are not deleted. I can't see any configuration to enable this in the code, is this implemented at all?
If this isn't implemented, is there a workaround? It seems like a necessary feature to me, otherwise buckets will quickly fill up with trash, which also costs money.