We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 51020
    • 670 Posts
    HI There,

    I'm trying to upload a PDF via a TV in a resource, but the file is fairly large (11MB).
    I have changed the system setting :

    Maximum upload size

    to: 20000000

    Which should be plenty.

    I have also changed the PHP.ini setting:
    upload_max_filesize

    to 20MB

    But when I attempt to upload the file, it just doesn't appear in the file structure.

    I can obviously FTP the file in, but the end user doesn't have the ability to do this, so needs to be able to upload via modx.

    I can't see any settings in the htaccess file etc - not sure what else to try?

    Thanks
    Andy

    This question has been answered by tm2000. See the first response.

      • 17301
      • 932 Posts
      I think there's an upload max size setting in the modx system settings
        ■ email: [email protected] | ■ website: https://alienbuild.uk

        The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.
        • 51020
        • 670 Posts
        Quote from: lkfranklin at Sep 22, 2017, 08:56 AM
        I think there's an upload max size setting in the modx system settings
        Thanks - Yep - I mentioned that in the original post - I have changed the system setting : Maximum upload size to: 20000000

        Can't work out what else it could be!
        • discuss.answer
          • 51020
          • 670 Posts
          UPDATE - I just found a blog article by Sepia River (https://www.sepiariver.ca/blog/modx-web/modx-and-php-max-upload-size/), which outlined another line to add to a php.ini file in the home directory of the site:

          post_max_size = 40M
          


          This didn't work, but then I noticed I had a .user.ini file in there too - so I added it there, and this worked!

          Hope this helps anyone else who has the same issue!

          Andy