Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

can't upload images


Draklor

Recommended Posts

Posted

My server has disabled upload capabilities in the php.ini file.

 

I get this warning:

Warning: File uploads are disabled in the php.ini configuration file.

 

I've talked to my the tech people from my server, and this is what they told me:

File uploads are disabled because Apache 1.3 and mod_php lacks an integrated suEXEC-like mechanism in its software, which would allow scripts to be executed under the UID of its caller.

As it now stands, PHP scripts execute as the system-wide www user, requiring any directory which receives uploaded files to be masked with world writeable permissions. The consequences of this are obvious and severe: files are uploaded, compiled, and executed as the www user, devouring resources and preventing the clean restart of Apache.

All of the rogue, PHP-implicated www PIDs could be terminated only by manual intervention.

 

So, it looks like I need a work around. They said I was more than welcome to use any scripts out there to upload, and I've found many for perl, asp, and others, but the problem is integrating a new upload script with the existing osCommerce interface. Heck, I'd be happy to be able to have a applet in a seperate file that would allow an upload and a mod of the database in one fell swoop, and then just link to that file from my admin categories file.

 

Any suggestions?

Posted

You can use an FTP program to upload your images to the catalog/images/ folder the say when you create a product in the image input boxt simply type the name of the image eg product.gif and aslong as its in your images folder it will apear on the site!

Reddy to Rumble

 

Thank you osCommerce and all who Contribute to her!

Posted

I tried uploading the file seperately, but that doesn't work, if I type in the filename of my image in the text box, it still doesn't display any pic. Sure enought the database still shows NULL for the products_image field.

 

This doesn't work, it would be great if it did, but it doesn't.

Posted

are you sure the images folder is declared correctly in the admin/configure.php file.

 

  define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

 define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');

Reddy to Rumble

 

Thank you osCommerce and all who Contribute to her!

Posted

Everything is set right yes. What version are you running? I'm running 2.2 milestone 2. It could be that we're running different versions, and yours allows for something that mine doesn't.

  • 1 month later...
Posted

I am having the exact same problem. I am also using MS2.2. Did you ever resolve this problem, and if so, how? I sure could use some help on this one!

 

Thanks,

Karlin

Archived

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

×
×
  • Create New...