mirror of
https://github.com/System-End/cdn.git
synced 2026-04-19 18:35:12 +00:00
maybe?
This commit is contained in:
parent
6609b8f4af
commit
b59b7ceb95
1 changed files with 1 additions and 1 deletions
|
|
@ -5,7 +5,7 @@ class ExternalUploadsController < ApplicationController
|
|||
|
||||
def show
|
||||
upload = Upload.includes(:blob).find(params[:id])
|
||||
redirect_to rails_blob_url(upload.blob, disposition: :inline), allow_other_host: true
|
||||
redirect_to upload.blob.url(disposition: :inline), allow_other_host: true
|
||||
rescue ActiveRecord::RecordNotFound
|
||||
head :not_found
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue