bugfix: fix file uploads not showing original file name

fixes: #1246
This commit is contained in:
Vishal Pandey
2020-09-21 18:42:30 +05:30
committed by GitHub
parent ea6577af6d
commit 313b2da703
2 changed files with 5 additions and 1 deletions

View File

@@ -35,4 +35,8 @@ class LocalResource
def tmp_folder
Rails.root.join('tmp')
end
def filename
File.basename(uri.path)
end
end