diff --git a/app/controllers/photos_controller.rb b/app/controllers/photos_controller.rb index 1afafd9b9e5388639e25a93aec0bbda36ec6d4d2..e739c2e38c272fd32785fed181dbab1dba61427c 100644 --- a/app/controllers/photos_controller.rb +++ b/app/controllers/photos_controller.rb @@ -49,7 +49,11 @@ class PhotosController < ApplicationController params[:photo][:aspect_ids] = params[:photo][:aspect_ids].values end - params[:photo][:user_file] = file_handler(params) + params[:photo][:user_file] = if request.params.has_key?(:qqfile) and not request.params[:qqfile].is_a?(String) + params[:qqfile] + else + file_handler(params) + end @photo = current_user.build_post(:photo, params[:photo])