• Hi guys,

    I need to change my current max upload limit (7MB) to 15MB. I got in contact with my hosting provider and here’s its reply:

    ?The default php.ini we have configured in our system does have a max
    upload limit of 7MB. The php.ini settings are universal across our shared hosting environment and cannot be changed.?

    I’d appreciate your help. My knowledge is quite basic, so I’d appreciate it if you could be as detailed as possible in your reply.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • some hosts allow a php.ini to be placed in your directory which will override the default, some don’t.

    also, you can try modifying it in .htaccess

    place this in your .htaccess file

    php_value upload_max_filesize 15M

    if your site errors, you know that php_value is not allowed in your .htaccess

    additionally, you can try adding to your script:

    ini_set('upload_max_filesize','15360000000');

    (note that if you are using ini_set, you can’t use the shorthand of 15M, you have to put the actual value that it is equal to (15,000,000 * 1024))

    Thread Starter Gart

    (@gart)

    Thanks, luckdragon. I apologise for trying your patience. I’ve searched my root directory C:\wamp/bin/ and found four files: two php.ini as well as php.ini-development and php.ini-production. I’ve changed all of them to
    upload_max_filesize = 15M
    post_max_size = 15M

    I then tried to upload a 12MB file but got the message: max upload file=7MB.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to change max upload limit’ is closed to new replies.