NameSilo

To Increase the upload size in .htaccess

Located in Web Hosting Discussion, started by Mywebbee, May 16, 2018

Replies:
0
Views:
3,910

  1. Mywebbee

    Mywebbee New Member

    Posts:
    8
    Likes Received:
    4
    In an .htaccess file in the same directory as the script, include this line:

    php_value upload_max_filesize

    where is the size of the allowable upload. For example, if the desired filesize is 5 meg, the following directive would be placed in the .htaccess:

    php_value upload_max_filesize 5M

    If you get a 500 Error add this code in your php.ini file and place it in your root folder

    upload_max_filesize = 5M
    post_max_size = 5M

    then add this code in your .htaccess in your root folder

    suPHP_ConfigPath /home/username/public_html
    <Files php.ini>
    order allow,deny
    deny from all
    </Files>
     
    The views expressed on this page by users and staff are their own, not those of NamePros.

Want to reply or ask your own question?

It only takes a minute to sign up – and it's free!
NameWorth
  1. NamePros uses cookies and similar technologies. By using this site, you are agreeing to our privacy policy, terms, and use of cookies.
    Dismiss Notice
Loading...