Update galleries_controller.rb
solve the upload problem for production mode
This commit is contained in:
parent
3789b94041
commit
c56cfab46d
|
@ -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']
|
||||
|
|
Loading…
Reference in New Issue