mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 16:21:18 +08:00
Fix backend code for searching by a filetype as a combination of uploads and topic links. Add rspec test for extracting file extension in upload.
This commit is contained in:
@ -95,7 +95,7 @@ module FileStore
|
||||
end
|
||||
|
||||
def get_path_for_upload(upload)
|
||||
get_path_for("original".freeze, upload.id, upload.sha1, upload.extension)
|
||||
get_path_for("original".freeze, upload.id, upload.sha1, File.extname(upload.original_filename))
|
||||
end
|
||||
|
||||
def get_path_for_optimized_image(optimized_image)
|
||||
|
Reference in New Issue
Block a user