potential fix for #3290

This commit is contained in:
r888888888
2017-09-13 12:55:04 -07:00
parent c2b49bf2b7
commit 75f87bcc8e
2 changed files with 18 additions and 7 deletions

View File

@@ -212,7 +212,6 @@ class Upload < ApplicationRecord
end
def move_file
return if File.exists?(md5_file_path)
FileUtils.mv(file_path, md5_file_path)
end