mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
fix file save
This commit is contained in:
parent
bcc9540874
commit
4b19f3c091
1 changed files with 1 additions and 1 deletions
2
app.rb
2
app.rb
|
@ -464,7 +464,7 @@ post '/site_files/save/:filename' do |filename|
|
||||||
tempfile.write input
|
tempfile.write input
|
||||||
tempfile.close
|
tempfile.close
|
||||||
|
|
||||||
if current_site.file_site_too_large? tempfile.size
|
if current_site.file_size_too_large? tempfile.size
|
||||||
halt 'File is too large to fit in your space, it has NOT been saved. Please make a local copy and then try to reduce the size.'
|
halt 'File is too large to fit in your space, it has NOT been saved. Please make a local copy and then try to reduce the size.'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue