Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Image Uploading, move_uploaded_file, Windows 2000 server.


zxed

Recommended Posts

Posted

Installed OSC2.2M1

At admin, i go upload an image from a product, click preciew, i get 2 errors.

 

 

Warning: move_uploaded_file(/catalog/images/another one001.bmp) [function.move-uploaded-file]: failed to create stream: No such file or directory in e:websiteshealthcarellc.comcatalogadminincludesfunctionsgeneral.php on line 788

 

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'C:PHPuploadtempphp49EE.tmp' to '/catalog/images/another one001.bmp' in e:websiteshealthcarellc.comcatalogadminincludesfunctionsgeneral.php on line 788

 

it probably has to do with accessing the tmp directory, i use shared web hosting, on a windows platform, does anyone know how to work around this problem?

Posted

I am just an amateur but I like to venture guesses...

could there be a problem with the admin file WITHIN the catalog file? Aren't they typically separate?

 

Good luck!

Posted

you most likely need to edit configure.php and have all the paths written in the way Windows use like E:blahblah

 

in your error I see "'/catalog/images/another one001.bmp' " which is a UNIX way of writng paths. I guess in your case this should be catalogimages, although I am not competely sure

 

And make sure you have no spaces in your images name - this will insure better compatibility with different browsers

 

Thanks

Archived

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

×
×
  • Create New...