Welcome Guest, Not a member yet? Register   Sign In
Prevent large files upload before uploading
#1

[eluser]Unknown[/eluser]
Hello,

I have an upload form on my website so that users could upload photos and I want to prevent users from uploading very large files (more than 4 MB).

I know that I can check it with CI upload library, but how can I handle file size before it's finished uploading? Because now I can select 1 GB file and start uploading and it won't give any error before uploading is finished.

As I know I can't check file size with JS or PHP either. So what could other solutions be to do it before or at least in progress of uploading? Thanks




Theme © iAndrew 2016 - Forum software by © MyBB