Presever Tempfile target extension to pass target file gem specific validations on these
This commit is contained in:
@@ -106,7 +106,8 @@ module Dunlop::TargetFileModel
|
||||
end
|
||||
|
||||
def new_working_file
|
||||
local_working_file = Tempfile.new("target_file", Rails.application.config.working_path)
|
||||
#local_working_file = Tempfile.new("target_file", Rails.application.config.working_path)
|
||||
local_working_file = Tempfile.new([target_basename, File.extname(target_basename)], Rails.application.config.working_path) # keep reference for tempfile till unzip completed and keep extension preserved
|
||||
FileUtils.chmod(0666, local_working_file.path)
|
||||
local_working_file
|
||||
end
|
||||
|
||||
@@ -3,3 +3,4 @@
|
||||
.column= render "dunlop/users/scenario_permissions"
|
||||
.column= render "dunlop/users/source_files_permissions"
|
||||
.column= render "dunlop/users/target_files_permissions"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user