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
{"image" => %Plug.Upload{content_type: "image/jpeg",
filename: "17409815_1317417211684158_788963503_n.jpg",
path: "/tmp/plug-1491/multipart-576910-531644-1"}}
[error] Task #PID<0.922.0> started from #PID<0.917.0> terminating
** (UndefinedFunctionError) function ExAws.S3.Upload.stream_file/1 is undefined (module ExAws.S3.Upload is not available)
ExAws.S3.Upload.stream_file("/tmp/plug-1491/multipart-576910-531644-1")
lib/arc/storage/s3.ex:55: Arc.Storage.S3.do_put/3
(elixir) lib/task/supervised.ex:85: Task.Supervised.do_apply/2
(elixir) lib/task/supervised.ex:36: Task.Supervised.reply/5
(stdlib) proc_lib.erl:247: :proc_lib.init_p_do_apply/3
Function: #Function<0.52315234/0 in Arc.Actions.Store.async_put_version/3>
Here is my code
defmodule BlogTest.Avatar do
use Arc.Definition
use Arc.Ecto.Definition
@versions [:original]
def filename(version, {_file, scope}) do
"{scope.uuid}_#{version}"
end
# Override the storage directory:
def storage_dir(version, {file, _scope}) do
"uploads/user/avatars/#{5}"
end
end
The text was updated successfully, but these errors were encountered:
Here is my output
Here is my code
The text was updated successfully, but these errors were encountered: