file upload problem using REQUEST_CHUNKED_DECHUNK

From: Date: Fri, 12 Dec 2003 20:50:56 +0000
Subject: file upload problem using REQUEST_CHUNKED_DECHUNK
Groups: php.internals 
Request: Send a blank email to internals+get-6374@lists.php.net to get a copy of this message
Hi, I'm trying to upload a file, which is sent as CHUNKS. I modified the setup_client_block to use REQUEST_CHUNKED_DECHUNK option so that apache will dechunk it. With only this modification it used to work fine..but recently it stopped working. i.e, the file is copied only partially. around 16000 bytes is copied when the file uploaded is around 48000 bytes. I didn't modify any code but I don't what got changed. From the sniffer i could see the client is sending 48000 bytes, I added debugs to the sapi_apache_read_post and read_post in main/SAPI.c. At the end of the read_post function I could see the read_post_bytes to be 48000. I'm lost after that..I don't where the remaining bytes are gone. The actual filesize of the temporary file is only 16000 bytes. So somewhere after the read_post the data is lost while saving it to the temp uploaded file Any help to debug the problem will be very much appreciated. I am using apache 1.3.28 and php 4.0.4 thanks a lot Suresh __________________________________ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/

« previous php.internals (#6374) next »