diff --git a/app/controllers/admin/galleries_controller.rb b/app/controllers/admin/galleries_controller.rb index 4fa6fb6..b5d0a27 100644 --- a/app/controllers/admin/galleries_controller.rb +++ b/app/controllers/admin/galleries_controller.rb @@ -368,6 +368,7 @@ class Admin::GalleriesController < OrbitAdminController end def start_upload_process @@upload_success = true + sleep 0.01 render :json => {}.to_json end def init_upload @@ -380,6 +381,7 @@ class Admin::GalleriesController < OrbitAdminController render :json => {}.to_json end def upload_image + sleep 0.01 if !(@@image_unprocessed.nil?) album = Album.find(params[:album_id]) files = params['files']