set uploaded files to read-only access mode
This commit is contained in:
parent
12722d1df3
commit
405e81d29d
|
@ -17,6 +17,8 @@ class FileYard
|
|||
else
|
||||
File.open(file_path(name), 'wb') { |f| f.write(io.read) }
|
||||
end
|
||||
# just in case, estrict read access and prohibit write access to the uploaded file
|
||||
FileUtils.chmod(0440, file_path(name))
|
||||
end
|
||||
|
||||
def files
|
||||
|
|
Loading…
Reference in a new issue