You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have custom form(with custom php, built on phpmailer) when I added my template to batflat, I've got problem with form redirections. When attachment is too big it should redirect to my custom html error page. Instead of this I have error 403, without batflat it works fine.
The text was updated successfully, but these errors were encountered:
You could possibly fix this by implementing a quick filesize check on client-side using JavaScript if you know the max upload availability. Just update the form HTML accordingly referencing the example below:
<inputtype="file" id="file"><divid="notice"></div><script>varfileUpload=document.getElementById("file");fileUpload.onchange=function(){if(this.files[0].size>10485760){//10MB (10*1024*1024bytes)this.value="";// clear the file upload inputdocument.getElementById('notice').innerHTML='<span style="color:red;">The selected file exceeded 10MB and could not be uploaded.</span>';};};</script>
I have custom form(with custom php, built on phpmailer) when I added my template to batflat, I've got problem with form redirections. When attachment is too big it should redirect to my custom html error page. Instead of this I have error 403, without batflat it works fine.
The text was updated successfully, but these errors were encountered: