From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.103.181.8 with SMTP id i8cs325586mup; Mon, 8 Mar 2010 03:30:45 -0800 (PST) Received-SPF: pass (google.com: domain of 349-USwYKCqMKRQJOLSKXVLRQ.QOUDFN-GHYHOJRRJOHJURXSV.FRP@groups.bounces.google.com designates 10.142.247.27 as permitted sender) client-ip=10.142.247.27; Authentication-Results: mr.google.com; spf=pass (google.com: domain of 349-USwYKCqMKRQJOLSKXVLRQ.QOUDFN-GHYHOJRRJOHJURXSV.FRP@groups.bounces.google.com designates 10.142.247.27 as permitted sender) smtp.mail=349-USwYKCqMKRQJOLSKXVLRQ.QOUDFN-GHYHOJRRJOHJURXSV.FRP@groups.bounces.google.com; dkim=pass header.i=349-USwYKCqMKRQJOLSKXVLRQ.QOUDFN-GHYHOJRRJOHJURXSV.FRP@groups.bounces.google.com Received: from mr.google.com ([10.142.247.27]) by 10.142.247.27 with SMTP id u27mr881146wfh.36.1268047844360 (num_hops = 1); Mon, 08 Mar 2010 03:30:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=domainkey-signature:received:x-beenthere:received:received:received :received:received-spf:received:mime-version:received:date :in-reply-to:x-ip:references:user-agent:x-http-useragent:message-id :subject:from:to:x-original-authentication-results:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:x-thread-url:x-message-url:sender:list-subscribe :list-unsubscribe:content-type:content-transfer-encoding; bh=BQJZPNEjuYxA2a5mTZvxm+/fraBtAq1hSh5l7l+/vUY=; b=R/XeataknNqyoDCdB3oAQKx+nmmqqwt+XywD+ayRXFOHOA5SXmUDEqZ8jLuGVu8Rga 0myKUM8zJhePRdk9omSXYvbyinRs21NkxIuGka9/JQBaY/skVaYFJLeZdJI5a15cN60F +sASSazcQhXoGnh0CwoPgWK+E0OLjmjsOcFNA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=x-beenthere:received-spf:mime-version:date:in-reply-to:x-ip :references:user-agent:x-http-useragent:message-id:subject:from:to :x-original-authentication-results:x-original-sender:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :x-thread-url:x-message-url:sender:list-subscribe:list-unsubscribe :content-type:content-transfer-encoding; b=sFIxBnLgoeVM6zfCbTI8W/9sNuniuyYy0SpzUK4SQ2+4xIH52zQdSTND6q1b7UCnJ9 GcAoxI7ooaZ2/K5JAvq0xJJ3fVChJdoAOKdZ1InBrgtnEQwcm/kTCQMCh8v3+f2TfubF Sw7y4QTTJ/PxKJ+QQCKiP5u7S0bs6tqzcMoas= Received: by 10.142.247.27 with SMTP id u27mr100814wfh.36.1268047843123; Mon, 08 Mar 2010 03:30:43 -0800 (PST) X-BeenThere: rack-devel@googlegroups.com Received: by 10.142.4.36 with SMTP id 36ls1847364wfd.2.p; Mon, 08 Mar 2010 03:30:41 -0800 (PST) Received: by 10.142.209.4 with SMTP id h4mr388709wfg.14.1268047841845; Mon, 08 Mar 2010 03:30:41 -0800 (PST) Received: by 10.142.209.4 with SMTP id h4mr388708wfg.14.1268047841802; Mon, 08 Mar 2010 03:30:41 -0800 (PST) Return-Path: Received: from mail-gw0-f60.google.com (mail-gw0-f60.google.com [74.125.83.60]) by gmr-mx.google.com with ESMTP id 25si1380565pxi.8.2010.03.08.03.30.41; Mon, 08 Mar 2010 03:30:41 -0800 (PST) Received-SPF: pass (google.com: domain of hongli@phusion.nl designates 74.125.83.60 as permitted sender) client-ip=74.125.83.60; Received: by mail-gw0-f60.google.com with SMTP id 19so10505153gwb.25 for ; Mon, 08 Mar 2010 03:30:41 -0800 (PST) MIME-Version: 1.0 Received: by 10.151.116.12 with SMTP id t12mr170289ybm.72.1268047841405; Mon, 08 Mar 2010 03:30:41 -0800 (PST) Date: Mon, 8 Mar 2010 03:30:41 -0800 (PST) In-Reply-To: <927006e5-332c-4e59-aca6-4963bdcbea2a@q16g2000yqq.googlegroups.com> X-IP: 77.250.47.10 References: <20100306075548.GB6474@dcvr.yhbt.net> <44f3f951-889e-45ec-ae46-40a371329a9e@e1g2000yqh.googlegroups.com> <20100307235337.GA15381@dcvr.yhbt.net> <927006e5-332c-4e59-aca6-4963bdcbea2a@q16g2000yqq.googlegroups.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6,gzip(gfe),gzip(gfe) Message-ID: <80d93359-c1c2-4589-9db9-4ff53cf4f95b@b7g2000yqd.googlegroups.com> Subject: Re: Not cleaning up tempfiles for multipart? From: Hongli Lai To: Rack Development X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of hongli@phusion.nl designates 74.125.83.60 as permitted sender) smtp.mail=hongli@phusion.nl X-Original-Sender: hongli@phusion.nl Reply-To: rack-devel@googlegroups.com Precedence: list Mailing-list: list rack-devel@googlegroups.com; contact rack-devel+owners@googlegroups.com List-ID: List-Post: , List-Help: , List-Archive: X-Thread-Url: http://groups.google.com/group/rack-devel/t/6eb2bc7a1f8c072c X-Message-Url: http://groups.google.com/group/rack-devel/msg/76a5748ad1a9ef96 Sender: rack-devel@googlegroups.com List-Subscribe: , List-Unsubscribe: , Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Mar 8, 12:26=A0pm, Hongli Lai wrote: > Charles's middleware looks simple enough. I approve. Sorry. I mean Eric's. :) Another thing that you might want to keep in mind is that users might File.rename() a certain Tempfile, in which case you will not want to unlink it. For example suppose one uploads a large file to the web server, I think there are web apps out there that will simply rename() the tempfile to the storage directory and therefore avoid an expensive copy operation.