Jump to content

max upload on windows


bloodfoot

Recommended Posts

I have an upload script for my client. The max upload in the php.ini is set to 2M..as standard.

 

I tested it on a linux server and by editing the .htaccess file I can increase the max upload filesize.

 

That doesn't work on the windows server.

 

So i tried this

 

<input type="hidden" name="upload_max_filesize" value="16000" />

 

and this

 

<input type="hidden" name="upload_max_filesize" value="16M" />

 

and this

 

<input type="hidden" name="post_max_size" value="16M" /> 
<input type="hidden" name="upload_max_filesize" value="16M" /> 
<input type="hidden" name="max_execution_time" value="600" /> 

 

I can't get anything to work. Is there a set way to increase the max upload on a windows server?

Link to comment
https://forums.phpfreaks.com/topic/40997-max-upload-on-windows/
Share on other sites

On windows what server do you have installed?

 

If you have Apache then make sure you have set the AllowOverride directive to at least FileInfo in the httpd.conf (around line 200) otherwise your .htaccess files will be ignored.

 

Once you have confirmed that AllowOverride is set to at least FileInfo then create a .htaccess file and put this in it:

php_value "upload_max_filesize" 16M

 

Also make sure PHP is loaded as an Apache module too in order for the php_flag/php_value directives to work in .htaccess files.

 

When creating .htaccess files in Windows do it through notepad and type ".htaccess" (including the quotes) in the filename box.

Link to comment
https://forums.phpfreaks.com/topic/40997-max-upload-on-windows/#findComment-198529
Share on other sites

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.