Skip to content

How to delete temporary file automatically #256

@zmcNotafraid

Description

@zmcNotafraid

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions