We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6531
    • 154 Posts
    I would like to know if there is any way to prevent a web user from uploading anything larger than a certain file size?

    Thanks!
      • 10669
      • 8 Posts
      i would also like some documentation regarding size limits for files to upload.

      Currently in the documentation it states:

      "file - (for file upload input) - checks if a size error occurs, does not currently check file type"

      but does not specify how to set the acceptable size.

      geoff
        • 25663 MODX Staff
        • 12,272 Posts
        You’ll need to adjust your PHP configuration. PHP/Apache cannot access your local filesystem to read the file size in advance. You’d need to use a Flash-based file uploading tool to accomplish that.
          Ryan Thrash, MODX Co-Founder
          Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
          • 10669
          • 8 Posts
          okay, thanks.