Hi, I’m using ex_aws and arc to upload images to AWS S3.
Everything is working fine, but I can’t get the object delete function to work. The example on the arc page is as follows:
I don’t know anything about arc (other than it appears to be all
macros and no documentation!) but – why don’t you just use
ExAws.S3 directly? It’s pretty straightforward, e.g.
Arc is good when it comes to image attachments, it gives you ability to validate, transform images, create thumbnails easily. with arc_ecto you can define a field as Definition.Type + cast_attachment and let it do the job, much similar to CarrierWave in rails.
So, suppose your file name is my_image.png, and you have 2 versions of the image: [:original, :thumb]. you only have to ask arc to delete it once, both image versions will be deleted.