From 4b19f3c0915d9a8f5da9987b859ca8e1dde41004 Mon Sep 17 00:00:00 2001 From: Kyle Drake Date: Sat, 19 Apr 2014 15:45:20 -0700 Subject: [PATCH] fix file save --- app.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.rb b/app.rb index ce118fbf..e0647dce 100644 --- a/app.rb +++ b/app.rb @@ -464,7 +464,7 @@ post '/site_files/save/:filename' do |filename| tempfile.write input 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.' end