SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Jun 2009
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Request for Max Upload Filesize Change

    Hey everyone..

    I would like to be able to upload .pdfs that are 30MB

    1. I am using Wordpress 8.4
    2. I am using Dreamhost and cannot locate either the php.ini or .htaccess file
    3. I don't have php.ini or .htaccess in my root folder via FTP
    4. I e-mailed Dreamhost and they said they cannot do it on their end

    I would like to know if I just create a php.ini file and if so can someone copy/paste the entire php.ini file that would allow me to upload up to 30MB files?

    OR

    I would like to know if I just create a .htacess file and if so can someone copy/paste the entire .htaccess file that would allow me to upload to to 30MB files?

    Thank you ahead of time

  2. #2
    Web Professional
    Join Date
    Oct 2008
    Location
    London
    Posts
    862
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    .htaccess

    Code:
    php_admin_value upload_max_filesize 30M
    php_admin_value post_max_size 30M

  3. #3
    SitePoint Member
    Join Date
    Jun 2009
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by decowski View Post
    .htaccess

    Code:
    php_admin_value upload_max_filesize 30M
    php_admin_value post_max_size 30M
    Ok, I opened up notepad, copied and pasted the 2 lines of code and saved it as .htaccess but it saved it has .htaccess.txt how do I go about just having it called .htaccess ???

  4. #4
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,608
    Mentioned
    24 Post(s)
    Tagged
    1 Thread(s)
    ".htaccess" so that it doesn't add the extension (since this particular file doesn't have one).

    Any filename you place inside "" will not try to add an extension in Windows.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  5. #5
    SitePoint Wizard bronze trophy
    Join Date
    Jul 2008
    Posts
    5,757
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by felgall View Post

    Any filename you place inside "" will not try to add an extension in Windows.
    Heh, you learn something new every day


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •