• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.1 Limit photo file before upload to the server

#1
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?
 
#3
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?
 
#4
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.