Current section

Files

Jump to
ami lib uploaders post_attachment_uploader.ex
Raw

lib/uploaders/post_attachment_uploader.ex

defmodule Ami.PostAttachmentUploader do
use Arc.Definition
use Arc.Ecto.Definition
@acl :public_read_write
@versions [:original]
def storage_dir(_version, {_file, scope}) do
"uploads/post/post_attachments/#{scope.post_id}"
end
end