[Skip to main content](#vessel-content)

#   Change in the path for the images stored

##

- **[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")**
- [![PeterChain's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar570.png)](/forum/user/570-peterchain "View PeterChain's Profile") Topic Author
- [ Offline](/forum/user/570-peterchain)

Less More

- Posts: 640
- Thank you received: 16
-
-

11 years 2 months ago [\#213784](#213784) by [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")  *[Change in the path for the images stored](/forum/20-market-feature-requests/879204-change-in-the-path-for-the-images-stored#213784 "-- HikaShop version -- : 2.6.5 -- HikaMarket version -- : 1.6.5  Before the update to 1.6.5 my images uploaded with my vendor from frontend used to be stored in this route  http://mydomain/media/com&#95;hikashop/upload/ my&#95;product&#95;image.jpg  and since the update they get stored here  http://mydomain/media/com&#95;hikashop/upload/ my&#95;product&#95;image.jpg  This causes me problems with other self made solutions that retrieve images directly from the original path.  Is this new path just a new &quot;handling policy&quot; of your code? Shall I change this with some Configuration settings?  Thank you.")* was created by *[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")*

-- HikaShop version -- : 2.6.5
-- HikaMarket version -- : 1.6.5

Before the update to 1.6.5 my images uploaded with my vendor from frontend used to be stored in this route

http://mydomain**/media/com\_hikashop/upload/** my_product_image.jpg

and since the update they get stored here

http://mydomain**/media/com\_hikashop/upload/** my_product_image.jpg

This causes me problems with other self made solutions that retrieve images directly from the original path.

Is this new path just a new "handling policy" of your code? Shall I change this with some Configuration settings?

Thank you.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIwLW1hcmtldC1mZWF0dXJlLXJlcXVlc3RzLzg3OTIwNC1jaGFuZ2UtaW4tdGhlLXBhdGgtZm9yLXRoZS1pbWFnZXMtc3RvcmVkP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

11 years 2 months ago [\#213792](#213792) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Change in the path for the images stored](/forum/20-market-feature-requests/879204-change-in-the-path-for-the-images-stored#213792 "-- HikaShop version -- : 2.6.5 -- HikaMarket version -- : 1.6.5  Before the update to 1.6.5 my images uploaded with my vendor from frontend used to be stored in this route  http://mydomain/media/com&#95;hikashop/upload/ my&#95;product&#95;image.jpg  and since the update they get stored here  http://mydomain/media/com&#95;hikashop/upload/ my&#95;product&#95;image.jpg  This causes me problems with other self made solutions that retrieve images directly from the original path.  Is this new path just a new &quot;handling policy&quot; of your code? Shall I change this with some Configuration settings?  Thank you.")*

Hi,

I'm sorry but you wrote twice the exact same path

> http://mydomain/media/com\_hikashop/upload/ my\_product\_image.jpg
> http://mydomain/media/com\_hikashop/upload/ my\_product\_image.jpg

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIwLW1hcmtldC1mZWF0dXJlLXJlcXVlc3RzLzg3OTIwNC1jaGFuZ2UtaW4tdGhlLXBhdGgtZm9yLXRoZS1pbWFnZXMtc3RvcmVkP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")**
- [![PeterChain's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar570.png)](/forum/user/570-peterchain "View PeterChain's Profile") Topic Author
- [ Offline](/forum/user/570-peterchain)

Less More

- Posts: 640
- Thank you received: 16
-
-

11 years 2 months ago [\#213818](#213818) by [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")  Replied by *[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")* on topic *[Change in the path for the images stored](/forum/20-market-feature-requests/879204-change-in-the-path-for-the-images-stored#213818 "-- HikaShop version -- : 2.6.5 -- HikaMarket version -- : 1.6.5  Before the update to 1.6.5 my images uploaded with my vendor from frontend used to be stored in this route  http://mydomain/media/com&#95;hikashop/upload/ my&#95;product&#95;image.jpg  and since the update they get stored here  http://mydomain/media/com&#95;hikashop/upload/ my&#95;product&#95;image.jpg  This causes me problems with other self made solutions that retrieve images directly from the original path.  Is this new path just a new &quot;handling policy&quot; of your code? Shall I change this with some Configuration settings?  Thank you.")*

Woow! So ridiculous I am!

this is the real thing:

Before the update to 1.6.5 my images uploaded with my vendor from frontend used to be stored in this route

http://mydomain/media/com_hikashop/upload/vendor1/ my_product_image.jpg

and since the update they get stored here

http://mydomain/media/com_hikashop/upload/ my_product_image.jpg

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIwLW1hcmtldC1mZWF0dXJlLXJlcXVlc3RzLzg3OTIwNC1jaGFuZ2UtaW4tdGhlLXBhdGgtZm9yLXRoZS1pbWFnZXMtc3RvcmVkP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

11 years 2 months ago [\#213844](#213844) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Change in the path for the images stored](/forum/20-market-feature-requests/879204-change-in-the-path-for-the-images-stored#213844 "-- HikaShop version -- : 2.6.5 -- HikaMarket version -- : 1.6.5  Before the update to 1.6.5 my images uploaded with my vendor from frontend used to be stored in this route  http://mydomain/media/com&#95;hikashop/upload/ my&#95;product&#95;image.jpg  and since the update they get stored here  http://mydomain/media/com&#95;hikashop/upload/ my&#95;product&#95;image.jpg  This causes me problems with other self made solutions that retrieve images directly from the original path.  Is this new path just a new &quot;handling policy&quot; of your code? Shall I change this with some Configuration settings?  Thank you.")*

Hi,

Yes, the new path is for me the right one ; it was a bug fix.
With the multivendor version, we separate the folders the each vendor have his own folder and can't access to images of other vendors.
But for the main vendor or with HikaMarket front-end, the vendor is the manager of the entire store and should have access to all images.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIwLW1hcmtldC1mZWF0dXJlLXJlcXVlc3RzLzg3OTIwNC1jaGFuZ2UtaW4tdGhlLXBhdGgtZm9yLXRoZS1pbWFnZXMtc3RvcmVkP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")**
- [![PeterChain's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar570.png)](/forum/user/570-peterchain "View PeterChain's Profile") Topic Author
- [ Offline](/forum/user/570-peterchain)

Less More

- Posts: 640
- Thank you received: 16
-
-

11 years 2 months ago [\#213855](#213855) by [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")  Replied by *[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")* on topic *[Change in the path for the images stored](/forum/20-market-feature-requests/879204-change-in-the-path-for-the-images-stored#213855 "-- HikaShop version -- : 2.6.5 -- HikaMarket version -- : 1.6.5  Before the update to 1.6.5 my images uploaded with my vendor from frontend used to be stored in this route  http://mydomain/media/com&#95;hikashop/upload/ my&#95;product&#95;image.jpg  and since the update they get stored here  http://mydomain/media/com&#95;hikashop/upload/ my&#95;product&#95;image.jpg  This causes me problems with other self made solutions that retrieve images directly from the original path.  Is this new path just a new &quot;handling policy&quot; of your code? Shall I change this with some Configuration settings?  Thank you.")*

OK, I understand.

So now as I have maybe thousands of images inside vendor1, to make my own software compatible with both folders without having to reenter all vendor1 images to upload folder, can I use a symlink as an extention?

Wil it work or will it provide unexpected results in hikashop / hikamarket?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIwLW1hcmtldC1mZWF0dXJlLXJlcXVlc3RzLzg3OTIwNC1jaGFuZ2UtaW4tdGhlLXBhdGgtZm9yLXRoZS1pbWFnZXMtc3RvcmVkP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

11 years 2 months ago [\#213906](#213906) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Change in the path for the images stored](/forum/20-market-feature-requests/879204-change-in-the-path-for-the-images-stored#213906 "-- HikaShop version -- : 2.6.5 -- HikaMarket version -- : 1.6.5  Before the update to 1.6.5 my images uploaded with my vendor from frontend used to be stored in this route  http://mydomain/media/com&#95;hikashop/upload/ my&#95;product&#95;image.jpg  and since the update they get stored here  http://mydomain/media/com&#95;hikashop/upload/ my&#95;product&#95;image.jpg  This causes me problems with other self made solutions that retrieve images directly from the original path.  Is this new path just a new &quot;handling policy&quot; of your code? Shall I change this with some Configuration settings?  Thank you.")*

Hi,

I'm not sure that HikaShop/HikaMarket will handle correctly symlinks.
If you really want all images in the same folder, I see two kind of solutions :
- Move all images (and thumbnails) in the "upload" folder and then update the "file" database table to replace "vendor1/" by "" (using a mass-action for example).
- Edit the HikaMarket "product" controller to replace the block Code:

if($vendor_id &gt; 1) $options['sub_folder'] = 'vendor'.$vendor_id.DS;

By Code:

$options['sub_folder'] = 'vendor'.$vendor_id.DS;

In order to re-set the "vendor1" folder for new uploads.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIwLW1hcmtldC1mZWF0dXJlLXJlcXVlc3RzLzg3OTIwNC1jaGFuZ2UtaW4tdGhlLXBhdGgtZm9yLXRoZS1pbWFnZXMtc3RvcmVkP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")**
- [![PeterChain's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar570.png)](/forum/user/570-peterchain "View PeterChain's Profile") Topic Author
- [ Offline](/forum/user/570-peterchain)

Less More

- Posts: 640
- Thank you received: 16
-
-

11 years 1 month ago [\#214234](#214234) by [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")  Replied by *[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")* on topic *[Change in the path for the images stored](/forum/20-market-feature-requests/879204-change-in-the-path-for-the-images-stored#214234 "-- HikaShop version -- : 2.6.5 -- HikaMarket version -- : 1.6.5  Before the update to 1.6.5 my images uploaded with my vendor from frontend used to be stored in this route  http://mydomain/media/com&#95;hikashop/upload/ my&#95;product&#95;image.jpg  and since the update they get stored here  http://mydomain/media/com&#95;hikashop/upload/ my&#95;product&#95;image.jpg  This causes me problems with other self made solutions that retrieve images directly from the original path.  Is this new path just a new &quot;handling policy&quot; of your code? Shall I change this with some Configuration settings?  Thank you.")*

I see the replacing of the "file" database the cleanest and most definitive fix method for the next component updates.

Anyhow I don't see how in Mass Actions to change the "file" database.

When you say Mass Action you mean to use HikaShops MassAction system?

[ ![Captura&#95;de&#95;pantalla&#95;2015-09-15&#95;a&#95;les&#95;13&#95;39&#95;32.png](/forum/attachment/26475) ](/forum/attachment/26475 "...s&#95;13&#95;39&#95;32.png")

- [ ![Captura&#95;de&#95;pantalla&#95;2015-09-15&#95;a&#95;les&#95;13&#95;39&#95;32.png](/forum/attachment/26475) ](/forum/attachment/26475 "...s&#95;13&#95;39&#95;32.png") [ ](/forum/attachment/26475?download=1 "...s&#95;13&#95;39&#95;32.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIwLW1hcmtldC1mZWF0dXJlLXJlcXVlc3RzLzg3OTIwNC1jaGFuZ2UtaW4tdGhlLXBhdGgtZm9yLXRoZS1pbWFnZXMtc3RvcmVkP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

11 years 1 month ago [\#214236](#214236) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Change in the path for the images stored](/forum/20-market-feature-requests/879204-change-in-the-path-for-the-images-stored#214236 "-- HikaShop version -- : 2.6.5 -- HikaMarket version -- : 1.6.5  Before the update to 1.6.5 my images uploaded with my vendor from frontend used to be stored in this route  http://mydomain/media/com&#95;hikashop/upload/ my&#95;product&#95;image.jpg  and since the update they get stored here  http://mydomain/media/com&#95;hikashop/upload/ my&#95;product&#95;image.jpg  This causes me problems with other self made solutions that retrieve images directly from the original path.  Is this new path just a new &quot;handling policy&quot; of your code? Shall I change this with some Configuration settings?  Thank you.")*

Hi,

My bad, the product files are not handle by the mass action.
I'll create a feature request for Xavier.

So, in that case, a SQL query will be easier. Code:

UPDATE #__hikashop_file SET file_path = REPLACE(file_path, 'vendor1/', '') WHERE file_path LIKE 'vendor1/%';

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIwLW1hcmtldC1mZWF0dXJlLXJlcXVlc3RzLzg3OTIwNC1jaGFuZ2UtaW4tdGhlLXBhdGgtZm9yLXRoZS1pbWFnZXMtc3RvcmVkP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")**
- [![PeterChain's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar570.png)](/forum/user/570-peterchain "View PeterChain's Profile") Topic Author
- [ Offline](/forum/user/570-peterchain)

Less More

- Posts: 640
- Thank you received: 16
-
-

11 years 1 month ago [\#214266](#214266) by [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")  Replied by *[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")* on topic *[Change in the path for the images stored](/forum/20-market-feature-requests/879204-change-in-the-path-for-the-images-stored#214266 "-- HikaShop version -- : 2.6.5 -- HikaMarket version -- : 1.6.5  Before the update to 1.6.5 my images uploaded with my vendor from frontend used to be stored in this route  http://mydomain/media/com&#95;hikashop/upload/ my&#95;product&#95;image.jpg  and since the update they get stored here  http://mydomain/media/com&#95;hikashop/upload/ my&#95;product&#95;image.jpg  This causes me problems with other self made solutions that retrieve images directly from the original path.  Is this new path just a new &quot;handling policy&quot; of your code? Shall I change this with some Configuration settings?  Thank you.")*

Thank you for the SQL hint

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIwLW1hcmtldC1mZWF0dXJlLXJlcXVlc3RzLzg3OTIwNC1jaGFuZ2UtaW4tdGhlLXBhdGgtZm9yLXRoZS1pbWFnZXMtc3RvcmVkP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")**
- [![PeterChain's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar570.png)](/forum/user/570-peterchain "View PeterChain's Profile") Topic Author
- [ Offline](/forum/user/570-peterchain)

Less More

- Posts: 640
- Thank you received: 16
-
-

11 years 1 month ago [\#214305](#214305) by [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")  Replied by *[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")* on topic *[Change in the path for the images stored](/forum/20-market-feature-requests/879204-change-in-the-path-for-the-images-stored#214305 "-- HikaShop version -- : 2.6.5 -- HikaMarket version -- : 1.6.5  Before the update to 1.6.5 my images uploaded with my vendor from frontend used to be stored in this route  http://mydomain/media/com&#95;hikashop/upload/ my&#95;product&#95;image.jpg  and since the update they get stored here  http://mydomain/media/com&#95;hikashop/upload/ my&#95;product&#95;image.jpg  This causes me problems with other self made solutions that retrieve images directly from the original path.  Is this new path just a new &quot;handling policy&quot; of your code? Shall I change this with some Configuration settings?  Thank you.")*

Fixed now thanks to your advise.

Thank you!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIwLW1hcmtldC1mZWF0dXJlLXJlcXVlc3RzLzg3OTIwNC1jaGFuZ2UtaW4tdGhlLXBhdGgtZm9yLXRoZS1pbWFnZXMtc3RvcmVkP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.092 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
