Re: Question on file upload
| From: | Matt Wilson | Date: | Tue, 02 Jun 2009 23:21:45 +0000 |
| Subject: | Re: Question on file upload | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-44128@lists.php.net to get a copy of this message | ||
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