Fix/improve local ActiveStorage backend usage and handling of WebApp icons #162

Merged
greg merged 10 commits from bugfix/local_web_app_icons into chore/update_dependencies 2024-02-27 16:07:55 +00:00
Showing only changes of commit 3f110995a4 - Show all commits

View File

@ -42,8 +42,8 @@ module AppCatalogManager
else
download_url = "#{@app.url}/#{icon["src"].gsub(/^\//,'')}"
end
filename = "#{attachment_name}.png"
key = "web_apps/#{@app.id}/icons/#{attachment_name}.png"
filename = "#{attachment_name}-#{Time.now.to_i}.png"
key = "web_apps/#{@app.id}/icons/#{filename}"
begin
tempfile = Down.download(download_url)