This commit is contained in:
Christoph Haas 2021-02-18 01:59:46 +01:00
parent 1d364de8c8
commit 107f2a8dbe

View file

@ -68,8 +68,6 @@ class PackagesController < ApplicationController
# Log.log "Uploaded img=#{img.path}"
new_screenshot = @package.screenshots.new(simage: img)
# BUG: ActiveStorage will accept the broken PNG during upload!
# Check if the image was valid
if new_screenshot.valid?
new_screenshot.uploaderhash = session.id.to_s