Hey all -

I am working with the commons file uploader in struts to upload a JSP file to my website. Being a security conscious developer, I am limiting the available upload file types to text/plain and text/html hoping that the JSP file would be sent as one of these types.

Instead, it is sent as application/octet-stream - which is the same type used for executables and binary type files - seems kind of weird to me.

Does anybody know if there is a way to "force" jsp files to be of a text/plain (or some other text type) instead of application/octet-stream? I tried adding the following to my web.xml file:

<mime-mapping>
<extension>jsp</extension>
<mime-type>text/plain</mime-type>
</mime-mapping>


But it didn't seem to make a difference.

Thanks,
Matt

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to