Skip to content

Commit

Permalink
Merge pull request #3853 from OSC/backport-upload-fix
Browse files Browse the repository at this point in the history
backport #3838 to 3.1
  • Loading branch information
johrstrom authored Oct 7, 2024
2 parents ba0e39c + 01ebbc0 commit f09dc85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/dashboard/app/controllers/files_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ 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
render "transfers/show"
if @transfer.kind_of?(Transfer)
render 'transfers/show'
else
render json: {}
end
Expand Down

0 comments on commit f09dc85

Please sign in to comment.