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