upload_max_filesize

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • xyv49079
    Junior Member
    • Mar 2021
    • 4

    #1

    upload_max_filesize

    rediculous limits
  • kevin
    Junior Member
    • Oct 2018
    • 11

    #2
    I have setup all the PHP versions with a upload_max_filesize of 512 but there are some that are allowing unlimited (∞) and others that are upwards of 50GB uploads regardless of the limits set. What rules and what overrides here? How can I fix this?

    Comment

    • kevin
      Junior Member
      • Oct 2018
      • 11

      #3
      Any help with this would be great. I have searched everywhere for a reason and so far I am coming up with blanks. I just don get what is overriding the php.ini files?

      Comment

      • bogdan.sh
        Administrator
        • Nov 2016
        • 1220

        #4
        Kevin, do you use PHP -Selector? And what control panel?

        Where do you see upload_max_filesize different from your server default (512M) ? If its on regular phpinfo() page then definitely this is done with php.ini or with .htaccess file (just look for any directory above virtualhost documentroot). If you just see someone can upload larger 512M file - this could be changed right before upload progress in same .php file, using for example this code:

        Code:
        ini_set("upload_max_filesize","300M" ) ;
        In this case I would recommend checking for that directive recursively in domain root, this way:

        Code:
        cd /path_to_domain/
        
        grep upload_max_filesize . -Rs

        Comment

        Working...