diff --git a/apps/dashboard/app/controllers/files_controller.rb b/apps/dashboard/app/controllers/files_controller.rb index 81d14a77e9..72dbd662e5 100644 --- a/apps/dashboard/app/controllers/files_controller.rb +++ b/apps/dashboard/app/controllers/files_controller.rb @@ -156,7 +156,7 @@ def upload request.env[Rack::RACK_TEMPFILES].reject! { |f| f.path == params[:file].tempfile.path } unless posix_file? @transfer = @path.handle_upload(params[:file].tempfile) - if @transfer + if @transfer.kind_of?(Transfer) render 'transfers/show' else render json: {}