Skip to content
Snippets Groups Projects
Commit ebe658c1 authored by Hakaba Hitoyo's avatar Hakaba Hitoyo
Browse files

debuf

parent 698cb358
Branches
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@ defmodule Pleroma.Uploaders.Mdii 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}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment