I use local adapter and transform like this
def transform(:file_format, _) do
{:convert, "-format png", :png}
end
Then I found it will generate a temporary file in temp folder.And I read the code in convert.ex and find this
new_path = Arc.File.generate_temporary_path(file)
So I need to delete them manually. Do there have any solution to delete them automatically after upload successfully?
I use local adapter and transform like this
Then I found it will generate a temporary file in temp folder.And I read the code in convert.ex and find this
So I need to delete them manually. Do there have any solution to delete them automatically after upload successfully?