XF 1.1 Limit photo file before upload to the server

AmurBereg

Member
The file php.ini, upload_max_filesize = 1M

In the settings xenforo.
ACP -> Options -> Attachments: Maximum Attachment File Size 1024 (KB)
ACP -> Options -> Attachments: Maximum Attachment Image Dimensions 1920x1080

I have the following problem.
When I try to download the file "1.zip" size=4MB, i get an error now "The uploaded file is too large." The file is not downloaded to the server.


And when I try to download a file "1.jpg", size=4MB. It is downloaded to the server, and then writes an error "The uploaded file is too large."

How can I do that I get error before download the file "1.jpg" to the server?
 
I understand that it will images are handled when being uploaded... But I do not need to make the images are handled. This extra load on the server ...
I need to make the images permitted in size as well as regular files.
So I'm asking how to do it?
 
Well, someone can suggest how to do what some very simple check on the file size of your photos before uploading, and only then they would be loaded for processing.
 
Top Bottom