mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
Fix for supporter file type uploads via WebDAV
This commit is contained in:
parent
e95dd99c29
commit
79887f87ba
1 changed files with 2 additions and 1 deletions
|
@ -29,7 +29,8 @@ map '/webdav' do
|
|||
return [507, {}, ['']]
|
||||
end
|
||||
|
||||
if Site.valid_file_type?(filename: path, tempfile: tmpfile)
|
||||
# if Site.valid_file_type?(filename: path, tempfile: tmpfile)
|
||||
if site.okay_to_upload? filename: path, tempfile: tmpfile
|
||||
site.store_files [{filename: path, tempfile: tmpfile}]
|
||||
return [201, {}, ['']]
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue