Question on file upload
| From: | Bharat Nagwani | Date: | Tue, 02 Jun 2009 20:55:06 +0000 |
| Subject: | Question on file upload | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-44127@lists.php.net to get a copy of this message | ||
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