mirror of
https://github.com/neocities/neocities.git
synced 2025-08-05 01:01:30 +02:00
some copy editing. switch to 10MB for accounts
This commit is contained in:
parent
712371101e
commit
daa87157c8
4 changed files with 30 additions and 18 deletions
2
app.rb
2
app.rb
|
@ -204,7 +204,7 @@ post '/site_files/save/:filename' do |filename|
|
|||
tmpfile = Tempfile.new 'neocities_saving_file'
|
||||
|
||||
if (tmpfile.size + current_site.total_space) > Site::MAX_SPACE
|
||||
halt 'File is too large, 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
|
||||
|
||||
tmpfile.write request.body.read
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue