Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Default Path for Images


doby48

Recommended Posts

Is there any way to set the default path to a subdirectory in images for each category? Basically what I am trying to do is sort out the images based on category but when I upload a new image it goes to the default images category. It is currently showing as follows:

 

Category: Crankbaits

Product: Lure1

Product: Lure2

images

Lure1.jpg

Lure2.jpg

 

I would like it to automatically move the image to the correct folder as follows:

 

Category: Crankbaits

Product: Lure1

Product: Lure2

images\Crankbaits

Lure1.jpg

Lure2.jpg

 

I can manually do this if I upload the files seperately and then type in the path to the product, but won't default to uploading in that directory. I also use the Quick Add Products contribution and have to go back into each item to change the path to the correct folder which is really the biggest problem.

 

Thanks in advance for any assistance.

Remember... Pillage BEFORE you burn!

Link to comment
Share on other sites

I saw something on this awhile back. If I recall correctly,

 

Store your images in a directory of the same name you want on the servers. then, when you upload the image, change the / to a \ in front of the dirctory you want to transfer.

 

If image is in c:\myimages\airplanes\picture.jpg you would change the upload path to

c:\myimages/airplanes/picture.jpg

GEOTEX from Houston, TX

 

(George)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...