I'm not sure if you're looking to change the C implementation or not, but you could always bypass the internal processing of the file. Set post_max_size to 0 and parse the HTTP_RAW_POST_DATA manually.

On Jun 2, 2009, at 3:55 PM, Bharat Nagwani wrote:

Hello,

I want to change the way file upload processing is done in php. We have a http server (appweb) that puts the uploaded file to a temp directory. This file has headers at the beginning and end.

I am looking at code rfc1867.c. This code takes the temp file and seems to extract the real file. I want to change it so instead of entire file, I can run a system awk command to trim the
header lines to get the actual file.

Has anyone done something similar? I cant find the place where the actual file is being read?
Can someone please point to that.

This is php 5.2 on bsd.

Thanks



--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to