mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2025-06-16 19:35:24 +02:00
Secretly raise the upload limit to 5mb from 4 and send a nice error message if server rejects
This commit is contained in:
@ -1868,6 +1868,8 @@
|
||||
funct.catch(function(data) {
|
||||
if (data.status == 429) {
|
||||
Materialize.toast('You are sending messages too fast! 1 message per ' + post_timeout + ' seconds', 10000);
|
||||
} else if (data.status == 413) {
|
||||
Materialize.toast('Your file is too powerful! The maximum file size is 4 megabytes.', 5000);
|
||||
}
|
||||
});
|
||||
funct.always(function() {
|
||||
|
Reference in New Issue
Block a user