File uploaded via plupload have got wrong ownership
This commit is contained in:
parent
e56f77b9ac
commit
854549b6ba
@ -65,6 +65,7 @@ class DmsfUploadController < ApplicationController
|
||||
target = "#{DmsfHelper.temp_dir}/#{@disk_filename}"
|
||||
begin
|
||||
FileUtils.cp @tempfile.path, target
|
||||
FileUtils.chmod 'u=wr,g=r', target
|
||||
rescue Exception => e
|
||||
Rails.logger.error e.message
|
||||
end
|
||||
|
||||
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user