mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
Fix for file copy to FS
This commit is contained in:
parent
ad2e60ad1c
commit
343d6b7c47
1 changed files with 1 additions and 1 deletions
|
@ -559,7 +559,7 @@ class Site < Sequel::Model
|
|||
|
||||
uploaded_size = uploaded.size
|
||||
|
||||
FileUtils.mv uploaded.path, path
|
||||
FileUtils.cp uploaded.path, path
|
||||
File.chmod 0640, path
|
||||
|
||||
site_file ||= SiteFile.new site_id: self.id, path: relative_path
|
||||
|
|
Loading…
Add table
Reference in a new issue