Bigfunkychief Posted November 9, 2010 Share Posted November 9, 2010 Hello, New to file upload boxes, working in PHP. My code seems to work great in IE, but not in Firefox or Chrome. This form shows the input box for the filename in IE and Firefox (with a Browse button), but Chrome only shows the Browse button, no filename box. <form enctype="multipart/form-data" method="post" action="profile.php"> <input type="file" size="32" name="image_field_photo" value=""> <br><input type="submit" name="Submit" value="Upload"> IE will upload the file to the specified directory, then update the DB based on the filename. Firefox will not upload the file, nor will Chrome. Using SSL for all pages. Using an upload class I got off PHPClasses.org - what's weird is I have used this same class on another project, and can upload files via Chrome. Any ideas? Thanks! [attachment deleted by admin] Quote Link to comment Share on other sites More sharing options...
OldWest Posted November 9, 2010 Share Posted November 9, 2010 I assume you're calling an xhtml doctype, so for Chrome, you might want to close out your <input> like /> <input type="file" size="32" name="image_field_photo" value="" /> That MIGHT work for starters. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.