This commit is contained in:
Hakaba Hitoyo 2018-11-15 14:46:43 +09:00
parent 698cb3587c
commit ebe658c169
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ def put_file(name, uuid, path, content_type, _should_dedupe) do
query = "https://#{host_name}/mdii.cgi?#{extension}"
with {:ok, %{status_code: 200, body: body}} <-
@httpoison.get(url, file_data) do
@httpoison.post(query, file_data) do
remote_file_name = body
public_url = "https://#{host_name}/#{remote_file_name}.#{extension}"
{:ok, public_url}