commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard HALLIER" <fred.lamue...@laposte.net>
Subject [COMMONS-UPLOAD] Mime-type detection
Date Tue, 25 Oct 2005 16:16:37 GMT
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  :
    <mime-mapping>
        <extension>flv</extension>
        <mime-type>video/x-flv</mime-type>
    </mime-mapping>

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


Mime
View raw message