Hello palychwp,
You will seen an error message but still You click submit button but the file that has an error will not be uploaded to the server.
Glen
Hello Glen.
Let me explain. Form usually submits 1-2 seconds without file. For example I set the limit to 10mb. When I choose the file it starts uploading immediately. I pick file wich have 30mb size, then I have to wait several seconds or even minutes while it’s uploading, and THEN I see the error about size. If I try submit the form now, after any file input changes, it takes the same time as file uploading, up to 1 minute. And it doesn’t matter if I removed the file or not.
Clients doesn’t wait and leave the page.
Is it possible to check file size before uploadin and/or form submission?
okay I understand will change this functionality hopefully I can add this on my next update.
Regards,
Glen
Ok. Thanks. I will wait for updates.
Hi Glen!
I saw that you’d fixed problem with filesize validation. But one bug is still there.
As I said earlier when I pick and then remove file it still sends with the form. I pick 30mb file, I see an error, I remove file and send the form. And then I have to wait and wait. I go to the Network Tab and analyze request.
In form data I see:
Content-Disposition: form-data; name="file"; filename="codpaste-teachingpack.pdf"
Content-Type: application/pdf
In Request Headers I see
Content-Length: 31592694
And my submission took 4.4min
Remove button removes file from the list but it still in the input.
I made console.log(jQuery('input[name="file"]').get(0).files) in Console and I saw Filelist object
FileList {0: File, length: 1}
0: File
lastModified: 1558599379002
lastModifiedDate: Thu May 23 2019 11:16:19 GMT+0300 (Восточная Европа, летнее время) {}
name: "codpaste-teachingpack.pdf"
size: 31591292
type: "application/pdf"
webkitRelativePath: ""
__proto__: File
length: 1
__proto__: FileList
So you need to clear file input value.
Hello @palychwp,
Sorry about that, I resolve and prioritize this issue.
Thanks for reporting.
Regards,
Glen
This issue has been fixed, please update to the latest version 1.2.6.0.