Win 2003 std file upload with php

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Andrew (andrewrobins_at_gmail.com)
Date: 06/28/04


Date: 28 Jun 2004 06:33:18 -0700

Hello all. I am tearing my hair out over a problem I am having with
uploading files from http forms via php to my Win2003 server.

Basically, after a certain time, file uploads fail. I have set the max
file upload size in php.ini, and am sure it isnt a problem with the
php configuration. All my uploads are stalling at approximately 8Mb.

I tried logging into the server and running the file upload page from
there and was able to upload much larger files with no problem at all,
but when I try it from my office machine, I can start the upload, and
- via remote desktop - simultaneously see the size of the temp file on
the server increasing, then when it hits approx 8mb - but sometimes
slightly more or less - the file size stops increasing, and the
transfer fails, with no feedback from my php script. As I said, this
definitely isnt a problem with the php setup, as from the server
itself, calling the php script, I am able to upload much larger files.

I have a feeling this is a 'time based' rather than 'filesize based'
issue I am running into.

Googling around suggests that in previous versions of IIS, a possible
tweak may have involved increasing the Script timeout setting on the
server. Is this likely to help? And if so, how can I do this with
IIS6?

Thanks in advance for any help



Relevant Pages

  • Re: [Full-disclosure] Fwd: FreePBX Unfounded RCE PoC or rather Misguided PoC maybe ?
    ... OK well, after trying again with the php code, but corrected php code, i ... dont think it is possible to save a page.. ... I have written 3 or so PoC's for this and also for another bug in this, ... allowed to specify a path to upload a file to. ...
    (Full-Disclosure)
  • Re: able to upload 28 meg file, yet php.ini limits posts to 10 megs. What is up with that?
    ... Maximum size of POST data that PHP will accept. ... I just uploaded a 28 meg file to the server. ... assuming that the upload should have failed, ... The server does have Plesk installed, which I know, in times past, has ...
    (comp.lang.php)
  • Re: risk of chmod 0777
    ... As it's a mutualized server, big images can't be resized in the PHP script due to the memory limit, that's why I do it using a ftp connection in my own program. ... It is a Java applet for easy FTP file upload, the pro version can resize images at the client side, before they are uploaded, which saves upload capacity and reduces server-side processing. ...
    (comp.lang.php)
  • Re: PHP Exploitation
    ... Try to RDP to the server, ... Subject: PHP Exploitation ... By now, i am able to upload php files to a Windows 2003 Server, so i ... Need to secure your web apps NOW? ...
    (Pen-Test)
  • Re: file upload problem
    ... I am trying to learn about uploading files with php. ... I made a simple form script and and file up load script. ... The form script gets the file name correctly and seems to pass it to the upload script correctly. ... if I echo ini_getI see ...
    (comp.lang.php)