2
0
Fork 0
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:
Jakub Macina 2017-07-06 19:11:32 +02:00
parent 8c445e9f17
commit 677267ae78
4 changed files with 21 additions and 12 deletions

View file

@ -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)