Matt Raible wrote:
Which web framework are you using? For #2, there's no way to filter file
types with a standard HTML control. However, there is a cool jQuery file
upload widget - but I can't seem to find it right now.
Since you didn't specify which framework, I'll guess struts2. If I'm
wrong, please ignore.
Both the file size and the mimetype constraint can be set through the
interceptor:
<interceptor-ref name="fileUpload">
<param name="maximumSize">5242880</param><!-- 5MB -->
<param
name="allowedTypes">image/jpeg,image/pjpeg,application/octet-stream</param><!--
When a file upload field is left empty, firefox sends an empty file of
this type - must allow it through the interceptor, but explicitly
fail/ignore it (especially if the accompanying file size is non-zero) -->
</interceptor-ref>
-Dale
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]