Click to See Complete Forum and Search --> : Problem uploading files bigger than 200kB


CybIRO
12-21-2006, 08:45 PM
Hi there.

I have an algorithm that uploads files to the server. This algorithm works in ASP and is able to upload files with an ordinary file input html object. I used to have no problems with it working on Windows 2000 Server.

However, now I'm migrating to Windows 2003 Server and the same algorithm is supposed to be working... but only files smaller than 200kB can be uploaded. Otherwise it doesn't work... it also doesn't send any error or warning message, it just doesn't upload the file.

I believe it might be a setup problem... but I have just looked everywhere on IIS and folder settings... and I can't find where should this setup be done.

Does anyone know?

Thanks a lot!
:confused:

CybIRO
12-21-2006, 09:02 PM
I found here at the forum another thread that helped me solve the problem. I checked http://www.freeaspupload.net/ and found the solution, wich I pasted here:

Server settings

Make sure the IIS web server is not restricting the size of ASP uploads. IIS 6 (Windows Server 2003) has a limit of 200 KB for ASP requests in general and file uploads in particular. To remove this limitation in IIS 6 you need to edit the Metabase file, which can be found at c:\Windows\System32\Inetsrv\MetaBase.xml.

Follow these steps: go to IIS and right click the server, select properties, and check the box "Allow changes to MetaBase configuration while IIS is running"; if after this step the metabase file is still locked, try turning off IIS or even restarting the machine in safe mode; open the file in an editor; the variable AspMaxRequestEntityAllowed limits the number of bytes in the page request (by default 200KB); change the value to 1073741824 (unlimited) or to a limit of your choice; check whether the same variable shows up in other places in the file.

Thanks to everyone who read and hope it works for you too!

Cheers! :D