Fix/improve local ActiveStorage backend usage and handling of WebApp icons #162
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user