Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44128 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 44144 invoked from network); 2 Jun 2009 23:18:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Jun 2009 23:18:56 -0000 Authentication-Results: pb1.pair.com header.from=shadda@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=shadda@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.198.235 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: shadda@gmail.com X-Host-Fingerprint: 209.85.198.235 rv-out-0506.google.com Received: from [209.85.198.235] ([209.85.198.235:35041] helo=rv-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 74/F4-15940-F53B52A4 for ; Tue, 02 Jun 2009 19:18:56 -0400 Received: by rv-out-0506.google.com with SMTP id k40so1323549rvb.7 for ; Tue, 02 Jun 2009 16:18:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=EtjVkGT+UOgJZL9QA68r6z9W/+hFjnSRK9QlqK9m4LM=; b=p8LqgDOf45/a/k+871rfRLv61gHqDo/C/3LTQC3OR507frbE4uQyMWu3Iv5qv2tSSe twBFR/ziqE+z9v6KzfuVmuBnDNGAanaCjRxd3VqRmwPzIDLT2oa3G05z853669Isn9K6 2mIzyue46S3UBAkW5iNGOoye/W77E4ktq7X78= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=nYtV8EbMCfUKev1jsJIYvl0rEyKqIR0gsCHDtmkJ+NXMA2f+p7kVfFhx0jPqCJH7q2 PnTlPV/dG6nIJv/+2lEoQLEcHfyCgvpvfr3H4OP8Uw5h9gC2kn9HbWY9TQu62vLgTGsl qnPhAYOQYdR+lGyymRUHFHSGv2m0X6+yQJYkk= Received: by 10.141.63.20 with SMTP id q20mr321065rvk.142.1243984733013; Tue, 02 Jun 2009 16:18:53 -0700 (PDT) Received: from ?192.168.1.159? ([75.87.134.66]) by mx.google.com with ESMTPS id f42sm20988199rvb.21.2009.06.02.16.18.50 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 02 Jun 2009 16:18:51 -0700 (PDT) Cc: "internals@lists.php.net" Message-ID: <9461E68C-2510-4498-A837-F55FAF7F5B15@gmail.com> To: Bharat Nagwani In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v935.3) Date: Tue, 2 Jun 2009 18:21:45 -0500 References: X-Mailer: Apple Mail (2.935.3) Subject: Re: [PHP-DEV] Question on file upload From: shadda@gmail.com (Matt Wilson) 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 >