mirror of
https://github.com/discourse/discourse.git
synced 2025-09-05 08:59:27 +08:00
Add onceoff job for uploads migration of column extension. Simplify filetype search and related rspec tests.
This commit is contained in:
parent
8c445e9f17
commit
677267ae78
4 changed files with 21 additions and 12 deletions
|
@ -95,7 +95,7 @@ module FileStore
|
|||
end
|
||||
|
||||
def get_path_for_upload(upload)
|
||||
get_path_for("original".freeze, upload.id, upload.sha1, File.extname(upload.original_filename))
|
||||
get_path_for("original".freeze, upload.id, upload.sha1, "."+upload.extension)
|
||||
end
|
||||
|
||||
def get_path_for_optimized_image(optimized_image)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue