struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <davelnew...@gmail.com>
Subject Re: struts2 There is a bug in FileUploadInterceptor (FileContentType).
Date Tue, 19 Jul 2011 02:25:48 GMT
Use a file type sniffer library.

Dave
 On Jul 18, 2011 10:06 PM, "mohan rao" <mohanaraosv@gmail.com> wrote:
> I'm trying to rescrit a file being Upload based on FileContentType. I'm
> facing browser compatability issue. Suppose if i have to allow only jar
> files (application/java-archive) but i'm getting different contentTypes
for
> different browsers. Like x-zip compressed, application-octstream for the
jar
> fileContentType. So, i tried allowed extension types (jar) it's working
> fine. But the if user changed the extension of a text file [.txt to .jar].
> It will fail and it's foolproof. How can i fix this problem?
>
> --
> View this message in context:
http://struts.1045723.n5.nabble.com/struts2-There-is-a-bug-in-FileUploadInterceptor-FileContentType-tp4601250p4601250.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message