Update galleries_controller.rb

solve the upload problem for production mode
This commit is contained in:
chiu 2019-10-21 20:15:29 +08:00
parent 3789b94041
commit c56cfab46d
1 changed files with 2 additions and 0 deletions

View File

@ -368,6 +368,7 @@ class Admin::GalleriesController < OrbitAdminController
end end
def start_upload_process def start_upload_process
@@upload_success = true @@upload_success = true
sleep 0.01
render :json => {}.to_json render :json => {}.to_json
end end
def init_upload def init_upload
@ -380,6 +381,7 @@ class Admin::GalleriesController < OrbitAdminController
render :json => {}.to_json render :json => {}.to_json
end end
def upload_image def upload_image
sleep 0.01
if !(@@image_unprocessed.nil?) if !(@@image_unprocessed.nil?)
album = Album.find(params[:album_id]) album = Album.find(params[:album_id])
files = params['files'] files = params['files']