To know file size before proccessing it
-
Hello,
I have a problem with Contact Forms when I’m sending a big file but i have a filter to notifie files is to big tan 10Mb. Any user can send me a big file, for error or for ignorance, but mi form not show my definied “too big file” notification because my server full my I/O cuote. It throw this errors into javascript console and Upload icon animation is working forever (no visible error message for the user):
Failed to load resource: the server responded with a status of 503 ()
jquery.js?ver=1.12.4:4 POST https://wa4steam.com/wp-admin/admin-ajax.php 404
send @ jquery.js?ver=1.12.4:4
ajax @ jquery.js?ver=1.12.4:4
n.<computed> @ jquery.js?ver=1.12.4:4
refreshSite @ bp-messages.js?ver=1.9.7.12:919
setTimeout (async)
refreshSite @ bp-messages.js?ver=1.9.7.12:913
setTimeout (async)
refreshSite @ bp-messages.js?ver=1.9.7.12:913
jquery.js?ver=1.12.4:4 GET https://wa4steam.com/wp-admin/admin-ajax.php?action=kleo_bp_ajax_call¤t_notifications=1¤t_messages=3 404Can I throw “too big file” notification before file processing to not saturate server i/o ?
Thank you.
- The topic ‘To know file size before proccessing it’ is closed to new replies.