Move back to 4mb and blame nginx

This commit is contained in:
Jeremy Zhang 2018-08-17 04:02:47 +00:00
parent a9720fe763
commit 127d6609b8
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ app.config['SQLALCHEMY_POOL_SIZE'] = 15
app.config['RATELIMIT_STORAGE_URL'] = config["redis-uri"]
app.config['PERMANENT_SESSION_LIFETIME'] = timedelta(days=3)
app.config['REDIS_URL'] = config["redis-uri"]
app.config['MAX_CONTENT_LENGTH'] = 5 * 1024 * 1024 # Limit upload size to ~5mb
app.config['MAX_CONTENT_LENGTH'] = 4 * 1024 * 1024 # Limit upload size to 4mb
app.secret_key = config['app-secret']
sentry.init_app(app)

View File

@ -1855,7 +1855,6 @@
$("#messagebox-filemodal").val("");
$("#fileinput").val("");
$("#filemodal").modal("close");
$("#filemodalprogress").hide();
});
funct.fail(function(data) {
Materialize.toast('Failed to send message.', 10000);
@ -1876,6 +1875,7 @@
$("#messagebox").attr('readonly', false);
$("#messagebox-filemodal").attr('readonly', false);
$("#proceed_fileupload_btn").attr("disabled", false);
$("#filemodalprogress").hide();
if ($("#filemodal").is(":visible")) {
$("#messagebox-filemodal").focus();
} else {