OK -- I thought this might be easy, but I've combed through things (including the forums here) and I don't see anyone asking where/how to change the default image path for the image uploading.
As a default, the images are uploading into ~/Assets/ProductImages/, however, my structure would be better if images could be added into the following: ~/Assets/Images/Products/
I figured this would be some simple variable or an option within web.config, but (sigh) I don't see it anywhere. Am I blind? Has anyone else needed to change this default target location for the image uploader? Is there a global variable for this?
BTW -- AbleCommerce 7.0.6 build 14312
many thanks!
Steve
Default Image Path -- where to change?
Re: Default Image Path -- where to change?
Unfortunately this option is not configurable and default path info is hard coded in CommerceBuilder.Utility.FileHelper class.
Re: Default Image Path -- where to change?
OK ... I suspected as much after striking out so quickly.
Thanks for the update!
Thanks for the update!
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
Re: Default Image Path -- where to change?
I had looked at this in the past for a client who had two sites but wanted to share images or wanted to host them somewhere else.
I think that if you find all the instances similar to
else _Product.ImageUrl = FileHelper.BaseImageUrlPath + safeFileName;
you can use a different path in place of FileHelper.BaseImageUrlPath
I think that if you find all the instances similar to
else _Product.ImageUrl = FileHelper.BaseImageUrlPath + safeFileName;
you can use a different path in place of FileHelper.BaseImageUrlPath
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
Re: Default Image Path -- where to change?
Hi Judy --
Yes, I thought about that too... certainly one option. Was hoping that I wouldn't have to edit the hard code, though.
Thanks!
Yes, I thought about that too... certainly one option. Was hoping that I wouldn't have to edit the hard code, though.
Thanks!