PHP upload file sizes

Hi all,
I have a MYSQL database which linits me to 8 meg for uploading files with my form.
The user enters a storename and store id then uploads 3 to 10 files for that store.
The user is unable to upload mare than 8 meg total.
I know that PHP 5.5 defaults to 8 meg and can be increased to 20 meg but I cannot access the php.ini file. Its in a protected directory that the host provider does not give me access to ( I am the admin of the site).
I know I can send a file to the database using the PHPADMIN method up to 50 meg.
The problem is sometimes these files get closer to 100 meg. Very rarely does it reach 100 meg, mostly around 80 meg and only a few stores (3 out of 100 stores) get such large files.
I have attempted to compress the files but they don’t get small enough.
What should I do to allow the user to upload 100 meg files?

Thanks
Dave

You can do it in the .htaccess file…

[php]php_value upload_max_filesize 30M[/php]

Or you can create your own php.ini file, where are your web files are located and set it there.

I put this in my php.ini file:

upload_max_filesize = 80M;

Thats my entire php.ini file.
I put the ini file in every folder where I am using php.
I could not find an .htaccess file.

This did not work.

You probably would have to create your own .htaccess file.

Can I create an htaccess file with only that one command.
I’ve looked at some htaccess generators and they seem to give me too much info and not the right info.
If I can create it in notepad and give it the right extension then load it to the right place, that would be easier.
Thanks

Sponsor our Newsletter | Privacy Policy | Terms of Service