Jump to content

changing upload_max_filesize for an individual script


pernest

Recommended Posts

Hello

 

I need to allow uploads of files larger than the standard 2MB. I don't think that I have access to the php.ini file on the host I use.

 

Is there any way to adjust this directive from within a script? I know the timeout directive can be adjusted on a script by script basis using  set_time_out(), and I was hopeing that someone could point me to something similar for upload_max_filesize.

 

Thanks

 

Paul

Thanks for that, the server is apache

 

Unfortunately I'm going to have to be dumb and ask how to write the .htaccess file.

 

I have named a file .htaccess and made sure that it has not extension. The only line I have put in it is

 

upload_max_filesize = 4M

 

this didn't work, I have also tried it with just the line

 

php_value upload_max_filesize = 4000

 

but this didn't work either. Do I need any headers, or is there something else I'm missing?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.