goweb
asked on
MIME Types
When I use the INPUT TYPE=file tage I want to use also the ACCEPT element and restrict the browser to accept only one type of fiel (for example: image/gif) But even though I restricted the browser to image/tiff, he accepted everything. Is there a solution?
Please give an example of your HTML form code so we have a better idea of what went wrong...
ASKER
here is an example of my html tags:
<FORM ENCTYPE="multipart/form-da ta" ACTION="/web_office/upload .pl" METHOD="POST">
File To Upload: <INPUT TYPE="file" NAME="upload-file" SIZE=35>
<INPUT TYPE="hidden" NAME="order" VALUE="1_12">
<INPUT TYPE="submit" VALUE="Attach file"></TD>
</FORM>
<FORM ENCTYPE="multipart/form-da
File To Upload: <INPUT TYPE="file" NAME="upload-file" SIZE=35>
<INPUT TYPE="hidden" NAME="order" VALUE="1_12">
<INPUT TYPE="submit" VALUE="Attach file"></TD>
</FORM>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.