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 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
?>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.