File uploaded via plupload have got wrong ownership

This commit is contained in:
Karel Picman 2017-02-10 11:02:11 +01:00
parent e56f77b9ac
commit 854549b6ba
2 changed files with 1 additions and 0 deletions

View File

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