0

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
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by samarudge
0

2 ways to do this
Option 1, as you said, edit the php.ini file
however from what you were saying this may be easyer
at the start of the file that handels the upload (Not the one with the form on) add this line

<?php
ini_set('upload_max_filesize ', '31M'); //Gone 1M over just to allow files slightly larger but edit to your specifications
?>
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.