mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: better uploads error page
This commit is contained in:
parent
019f954c44
commit
1fd8e426f2
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ class UploadsController < ApplicationController
|
||||||
protected
|
protected
|
||||||
|
|
||||||
def render_404
|
def render_404
|
||||||
render nothing: true, status: 404
|
raise Discourse::NotFound
|
||||||
end
|
end
|
||||||
|
|
||||||
def create_upload(file, url, type)
|
def create_upload(file, url, type)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue