Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 89688 invoked from network); 25 Oct 2005 16:17:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Oct 2005 16:17:14 -0000 Received: (qmail 88141 invoked by uid 500); 25 Oct 2005 16:16:58 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 88104 invoked by uid 500); 25 Oct 2005 16:16:57 -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 88093 invoked by uid 99); 25 Oct 2005 16:16:57 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Oct 2005 09:16:57 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [212.27.42.36] (HELO smtp6-g19.free.fr) (212.27.42.36) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Oct 2005 09:16:55 -0700 Received: from workstation (sto93-1-81-57-207-77.fbx.proxad.net [81.57.207.77]) by smtp6-g19.free.fr (Postfix) with SMTP id D781896B7 for ; Tue, 25 Oct 2005 18:16:34 +0200 (CEST) From: "Richard HALLIER" To: "Commons Users Mailing List" Subject: [COMMONS-UPLOAD] Mime-type detection Date: Tue, 25 Oct 2005 18:16:37 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Importance: Normal X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi all, I have some problems by filtering the files the user can upload in my webapp. I'd like to restrict the files to the flash videos (extension .flv), so I disallow the files whose the mime-type is different from video/x-flv. The problem is Commons-upload gives me the wrong mime-type : application/octet-stream Ok, so I added the mime-mapping my web.xml : flv video/x-flv Nothing changes .... Can someone give me some pointers ???? Thank you. R. --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org