Jump to content

File upload class works in IE but not in Firefox or Chrome


Bigfunkychief

Recommended Posts

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]

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.