mirror of
https://github.com/Babibubebon/social.metadata.moe.git
synced 2024-11-06 01:22:36 +09:00
af01f0196a
defaulting to :ok, since that's the currently level of error handling.
10 lines
323 B
Elixir
10 lines
323 B
Elixir
defmodule Pleroma.Uploaders.Swift do
|
|
@behaviour Pleroma.Uploaders.Uploader
|
|
|
|
def put_file(name, uuid, tmp_path, content_type, _should_dedupe) do
|
|
{:ok, file_data} = File.read(tmp_path)
|
|
remote_name = "#{uuid}/#{name}"
|
|
|
|
Pleroma.Uploaders.Swift.Client.upload_file(remote_name, file_data, content_type)
|
|
end
|
|
end
|