You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.
Hi, I'm probably missing something obvious but I can't get my files deleted; everything else works. (arc 0.11.0; arc_gcs 0.2.3)
Here's my uploader
defmodule Forluxury.Image do
use Arc.Definition
use Arc.Ecto.Definition
@versions [:original, :thumb]
@acl :public_read
def transform(:thumb, _) do
{:convert, "-resize 75x75 -background white -gravity center -extent 75x75"}
end
def transform(:original, _) do
{:convert, "-resize 350x350 -background white -gravity center -extent 350x350"}
end
def filename(version, _) do
version
end
def storage_dir(_version, {_file, scope}) do
if scope do
"images/#{scope.auction_id}/#{scope.image_uuid}"
end
end
def __storage, do: Arc.Storage.GCS
def gcs_object_headers(_, {file, _scope}) do
[content_type: MIME.from_path(file.file_name)]
end
end
the fields auction_id & image_uuid exist in the db and are populated (the generated URLs are correct); I don't delete the db record before trying to delete the file.
I'm not sure what I'm missing, but it just ignores the delete. I've also tried removing the "?v=xxxx" bit, same result. Same for the 'original' version or no version specified.
My service account has "Storage Object Admin" and "Storage Object Creator" permissions.
Any pointers greatly appreciated or how I could further diagnose this. I'm not sure what else to try.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi, I'm probably missing something obvious but I can't get my files deleted; everything else works. (arc 0.11.0; arc_gcs 0.2.3)
Here's my uploader
the fields auction_id & image_uuid exist in the db and are populated (the generated URLs are correct); I don't delete the db record before trying to delete the file.
in iex:
I'm not sure what I'm missing, but it just ignores the delete. I've also tried removing the "?v=xxxx" bit, same result. Same for the 'original' version or no version specified.
My service account has "Storage Object Admin" and "Storage Object Creator" permissions.
Any pointers greatly appreciated or how I could further diagnose this. I'm not sure what else to try.
The text was updated successfully, but these errors were encountered: