Upload page fixed for multi-uploads. Beautification.

This commit is contained in:
Christoph Haas 2016-10-30 13:02:41 +01:00
parent 4aa0ddcaeb
commit 0b5f158dd0
2 changed files with 28 additions and 25 deletions

View file

@ -33,7 +33,7 @@ class PackagesController < ApplicationController
successful_upload_count = 0
params[:screenshot][:image].each do |img|
params[:file].each do |img|
new_screenshot = @package.screenshots.new(image: img)
# Check if the image was valid