Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

possible to upload product image to two directories ?


macsnjets

Recommended Posts

Posted

Unfortunately the way my hosting company has the server set up, the SSL directory is different than where the non secure pages are therefore all the images of the products have to be copied to the ssl side also. Is there a way through the code to upload the image to both directories when a new product is added?

Thanks

Posted

in admin/categories.php look for

tep_copy_uploaded_file($categories_image, $image_directory);

 

and add that line once more where you replace $image_directory.

So it would look like this:

tep_copy_uploaded_file($categories_image, $image_directory);

tep_copy_uploaded_file($categories_image, '/home/ssl/');

 

(untested)

 

hth

Mattice

"Politics is the art of preventing people from taking part in affairs which properly concern them"

Archived

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

×
×
  • Create New...