debuf
This commit is contained in:
parent
698cb3587c
commit
ebe658c169
|
@ -15,7 +15,7 @@ def put_file(name, uuid, path, content_type, _should_dedupe) do
|
||||||
query = "https://#{host_name}/mdii.cgi?#{extension}"
|
query = "https://#{host_name}/mdii.cgi?#{extension}"
|
||||||
|
|
||||||
with {:ok, %{status_code: 200, body: body}} <-
|
with {:ok, %{status_code: 200, body: body}} <-
|
||||||
@httpoison.get(url, file_data) do
|
@httpoison.post(query, file_data) do
|
||||||
remote_file_name = body
|
remote_file_name = body
|
||||||
public_url = "https://#{host_name}/#{remote_file_name}.#{extension}"
|
public_url = "https://#{host_name}/#{remote_file_name}.#{extension}"
|
||||||
{:ok, public_url}
|
{:ok, public_url}
|
||||||
|
|
Loading…
Reference in New Issue