groogruxking40 Posted September 25, 2009 Share Posted September 25, 2009 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 Quote Link to comment https://forums.phpfreaks.com/topic/175509-request-for-max-upload-filesize-change/ Share on other sites More sharing options...
JonnoTheDev Posted September 25, 2009 Share Posted September 25, 2009 Just upload a htaccess file in the document root containing the following, its not hard: php_value upload_max_filesize 30M php_value post_max_size 30M Quote Link to comment https://forums.phpfreaks.com/topic/175509-request-for-max-upload-filesize-change/#findComment-924803 Share on other sites More sharing options...
JonnoTheDev Posted September 25, 2009 Share Posted September 25, 2009 I suggest you have a decent uploader as if you use a standard form the user will be sat there for a long time waiting for 30mb to be transferred over HTTP. The web server will probably time out! Quote Link to comment https://forums.phpfreaks.com/topic/175509-request-for-max-upload-filesize-change/#findComment-924806 Share on other sites More sharing options...
groogruxking40 Posted September 25, 2009 Author Share Posted September 25, 2009 Just upload a htaccess file in the document root containing the following, its not hard: php_value upload_max_filesize 30M php_value post_max_size 30M OK- could you copy and paste the entire htaccess file? also what do I name it and where does it go? I upload it via FTP to my root? thank you! Quote Link to comment https://forums.phpfreaks.com/topic/175509-request-for-max-upload-filesize-change/#findComment-924819 Share on other sites More sharing options...
JonnoTheDev Posted September 25, 2009 Share Posted September 25, 2009 That is the entire file! Open notepad. Add the lines I posted. Save as .htaccess (make sure its not .htaccess.txt or anything similar). Upload to your document root i.e. The root directory where your web files sit. Quote Link to comment https://forums.phpfreaks.com/topic/175509-request-for-max-upload-filesize-change/#findComment-924889 Share on other sites More sharing options...
groogruxking40 Posted September 25, 2009 Author Share Posted September 25, 2009 That is the entire file! Open notepad. Add the lines I posted. Save as .htaccess (make sure its not .htaccess.txt or anything similar). Upload to your document root i.e. The root directory where your web files sit. I did this, but it saved it as 1.htaccess.txt how do i go around this to make it just .htaccess? Quote Link to comment https://forums.phpfreaks.com/topic/175509-request-for-max-upload-filesize-change/#findComment-924977 Share on other sites More sharing options...
JonnoTheDev Posted September 25, 2009 Share Posted September 25, 2009 rename the file to .htaccess Quote Link to comment https://forums.phpfreaks.com/topic/175509-request-for-max-upload-filesize-change/#findComment-925101 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.