mirror of
https://github.com/System-End/cdn.git
synced 2026-04-19 16:18:17 +00:00
auh
This commit is contained in:
parent
b59b7ceb95
commit
ef79dabe59
2 changed files with 1 additions and 2 deletions
|
|
@ -5,7 +5,7 @@ class ExternalUploadsController < ApplicationController
|
|||
|
||||
def show
|
||||
upload = Upload.includes(:blob).find(params[:id])
|
||||
redirect_to upload.blob.url(disposition: :inline), allow_other_host: true
|
||||
redirect_to upload.blob.url(disposition: :inline, filename: upload.filename), allow_other_host: true
|
||||
rescue ActiveRecord::RecordNotFound
|
||||
head :not_found
|
||||
end
|
||||
|
|
|
|||
|
|
@ -68,7 +68,6 @@ class ProcessSlackFileUploadJob < ApplicationJob
|
|||
original_url,
|
||||
user: @user,
|
||||
provenance: :slack,
|
||||
original_url: original_url,
|
||||
authorization: "Bearer #{Rails.application.config.slack.bot_token}"
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue