Forum Moderators: mack
"To help protect your security, Internet Explorer has restricted this file from showing active content that could access your computer.
Click here for options..."
some misguided souls still use it
Actually, most users use IE, I think FF is only approaching something like 20%. So yeah, it's a thorn all right, but shouldn't be a problem with this issue.
Verify a couple things:
1. Yes, this problem exists online, see previous post.
2. Your form has enctype="multipart/form-data"
3. The page it's on validates [validator.w3.org].
Then post some relevant code here, not the whole page, just the form. Be sure to remove site-specific references, see TOS [webmasterworld.com].
heres my form:
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" enctype="multipart/form-data">
<label for="file"> Select a file:</label> <input type="file" name="userfile" id="file">
<button>upload</button>
</form>
Yeah it verifys and the "multipart/form-data" is there, and it is online, I tried it on both my computers and had a few friends try as well. I wanted to check if it was just my settings or not.
I don't think its IE's restrictions, I don't get any error messages and when I click into the text box and hit enter the file does upload.
Thanks for the welcome and the help guys :)
when I click into the text box and hit enter the file does upload
coopster hit it, I think, your Javascript is broken or not present. Generally a button has no inherent function and requires client side scripting to work. Using a submit button insures it will work. When you press enter from any field except a textarea field, the default action is submit.