Merge branch 'master' of git.workaround.org:chaas/debshots

This commit is contained in:
Christoph Haas 2016-11-02 20:05:46 +01:00
commit 396f3a7751
25 changed files with 395 additions and 257 deletions

View file

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