Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 38721 invoked from network); 17 Apr 2006 15:55:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Apr 2006 15:55:46 -0000 Received: (qmail 47050 invoked by uid 500); 17 Apr 2006 15:55:42 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 46770 invoked by uid 500); 17 Apr 2006 15:55:41 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 46759 invoked by uid 99); 17 Apr 2006 15:55:41 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Apr 2006 08:55:41 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of sven@schliesing.de designates 217.20.118.75 as permitted sender) Received: from [217.20.118.75] (HELO server187.xl-server.org) (217.20.118.75) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Apr 2006 08:55:40 -0700 Received: from localhost (localhost [127.0.0.1]) by server187.xl-server.org (Postfix) with ESMTP id 19F604C7FE for ; Mon, 17 Apr 2006 17:55:18 +0200 (CEST) Received: from server187.xl-server.org ([127.0.0.1]) by localhost (server187.xl-server.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08773-10 for ; Mon, 17 Apr 2006 17:55:17 +0200 (CEST) Received: from [127.0.0.1] (c163117.adsl.hansenet.de [213.39.163.117]) by server187.xl-server.org (Postfix) with ESMTP id 6FA7C4C7FD for ; Mon, 17 Apr 2006 17:55:17 +0200 (CEST) Message-ID: <4443BA63.70705@schliesing.de> Date: Mon, 17 Apr 2006 17:55:15 +0200 From: Sven Schliesing User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: Jakarta Commons Users List Subject: Re: [fileUpload] file content-type References: <4443B71A.9050206@wanadoo.fr> <9f066ee90604170851o3e31fd97p6c8cbaa0631bd76e@mail.gmail.com> In-Reply-To: <9f066ee90604170851o3e31fd97p6c8cbaa0631bd76e@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at raffts.net X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I use jmimemagic (http://sourceforge.net/projects/jmimemagic/) for that. Works nice. Mark wrote: > I would suggest using a library that would check the file type of the > uploaded file. This will give you a better idea of what the file is. > It is the job of the browser to fill in this data, and based on the > browser, you can get differing values on the server side. --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org