1. 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

Discussion in 'XenForo Questions and Support' started by AmurBereg, Aug 27, 2013.

  1. AmurBereg

    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?
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    The FAQ in my signature explains how images are handled when being uploaded.
     
  3. AmurBereg

    AmurBereg Member

    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?
     
    Romchik® likes this.
  4. AmurBereg

    AmurBereg Member

    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.
     
  5. xf_phantom

    xf_phantom Well-Known Member

  6. AmurBereg

    AmurBereg Member

    interesting suggestion...
     

Share This Page