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

#   upload image with option to choose your own map

##

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

Less More

- Posts: 637
- Thank you received: 26
-
-
-

9 years 1 month ago -  9 years 1 month ago [\#278532](#278532) by [Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")  *[upload image with option to choose your own map](/forum/50-feature-request/891961-upload-image-with-option-to-choose-your-own-map#278532 "-- HikaShop version -- : 3.2.0 -- Joomla version -- : 3.7.5 -- PHP version -- : 7  Hi Hikashop,  It would be nice when you upload an image for a product or category in Hikashop that you could choose your own (sub)folder. So you can organise all your images in your own folder structure. I know there is a setting in the configuration for the upload folder url. But now all images uploaded to Hikashop are stored in the same folder and if you have to select an image from a 500+ images folder it's hard to pick one.  I know I can make folders through FTP or in the Media Manager and upload them there, but in that case you have to leave Hikashop. And that's not user friendly for the customers.  Hope you understand me now ;-)  Kind regards, Lumiga")* was created by *[Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")*

-- HikaShop version -- : 3.2.0
-- Joomla version -- : 3.7.5
-- PHP version -- : 7

Hi Hikashop,

It would be nice when you upload an image for a product or category in Hikashop that you could choose your own (sub)folder.
So you can organise all your images in your own folder structure.
I know there is a setting in the configuration for the upload folder url. But now all images uploaded to Hikashop are stored in the same folder and if you have to select an image from a 500+ images folder it's hard to pick one.

I know I can make folders through FTP or in the Media Manager and upload them there, but in that case you have to leave Hikashop. And that's not user friendly for the customers.

Hope you understand me now ![;-)](/media/kunena/emoticons/24.png ";-)")

Kind regards,
Lumiga

---

Kind regards,
Lumiga

Last edit: 9 years 1 month ago by [Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile"). Reason: Better explanation

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14293
-
-

9 years 1 month ago [\#278533](#278533) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[upload image with option to choose your own map](/forum/50-feature-request/891961-upload-image-with-option-to-choose-your-own-map#278533 "-- HikaShop version -- : 3.2.0 -- Joomla version -- : 3.7.5 -- PHP version -- : 7  Hi Hikashop,  It would be nice when you upload an image for a product or category in Hikashop that you could choose your own (sub)folder. So you can organise all your images in your own folder structure. I know there is a setting in the configuration for the upload folder url. But now all images uploaded to Hikashop are stored in the same folder and if you have to select an image from a 500+ images folder it's hard to pick one.  I know I can make folders through FTP or in the Media Manager and upload them there, but in that case you have to leave Hikashop. And that's not user friendly for the customers.  Hope you understand me now ;-)  Kind regards, Lumiga")*

Hi,

I don't understand what you mean by "choose your own map".
What is a map ?
If you're talking about folders, note that you can create them via the Joomla media manager. You don't need to use FTP.

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

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

Less More

- Posts: 637
- Thank you received: 26
-
-
-

9 years 1 month ago [\#278570](#278570) by [Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")  Replied by *[Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")* on topic *[upload image with option to choose your own map](/forum/50-feature-request/891961-upload-image-with-option-to-choose-your-own-map#278570 "-- HikaShop version -- : 3.2.0 -- Joomla version -- : 3.7.5 -- PHP version -- : 7  Hi Hikashop,  It would be nice when you upload an image for a product or category in Hikashop that you could choose your own (sub)folder. So you can organise all your images in your own folder structure. I know there is a setting in the configuration for the upload folder url. But now all images uploaded to Hikashop are stored in the same folder and if you have to select an image from a 500+ images folder it's hard to pick one.  I know I can make folders through FTP or in the Media Manager and upload them there, but in that case you have to leave Hikashop. And that's not user friendly for the customers.  Hope you understand me now ;-)  Kind regards, Lumiga")*

Hi Nicolas,

I have update the issue, so hopefully you will understand me better now.

Kind regards,
Lumiga

---

Kind regards,
Lumiga

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14293
-
-

9 years 1 month ago [\#278637](#278637) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[upload image with option to choose your own map](/forum/50-feature-request/891961-upload-image-with-option-to-choose-your-own-map#278637 "-- HikaShop version -- : 3.2.0 -- Joomla version -- : 3.7.5 -- PHP version -- : 7  Hi Hikashop,  It would be nice when you upload an image for a product or category in Hikashop that you could choose your own (sub)folder. So you can organise all your images in your own folder structure. I know there is a setting in the configuration for the upload folder url. But now all images uploaded to Hikashop are stored in the same folder and if you have to select an image from a 500+ images folder it's hard to pick one.  I know I can make folders through FTP or in the Media Manager and upload them there, but in that case you have to leave Hikashop. And that's not user friendly for the customers.  Hope you understand me now ;-)  Kind regards, Lumiga")*

Hi,

Thank you for your feedback. It's much more clear now.
We'll take that into account for future improvements of that area.

The following user(s) said Thank You: [Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")

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

- **[jameswadsworth](/forum/user/556-jameswadsworth "View jameswadsworth's Profile")**
- [![jameswadsworth's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/556-jameswadsworth "View jameswadsworth's Profile")
- [ Offline](/forum/user/556-jameswadsworth)

Less More

- Posts: 274
- Thank you received: 5
-
-
-
- [](http://www.deanimaconsulting.com)
-

7 years 10 months ago [\#302002](#302002) by [jameswadsworth](/forum/user/556-jameswadsworth "View jameswadsworth's Profile")  Replied by *[jameswadsworth](/forum/user/556-jameswadsworth "View jameswadsworth's Profile")* on topic *[upload image with option to choose your own map](/forum/50-feature-request/891961-upload-image-with-option-to-choose-your-own-map#302002 "-- HikaShop version -- : 3.2.0 -- Joomla version -- : 3.7.5 -- PHP version -- : 7  Hi Hikashop,  It would be nice when you upload an image for a product or category in Hikashop that you could choose your own (sub)folder. So you can organise all your images in your own folder structure. I know there is a setting in the configuration for the upload folder url. But now all images uploaded to Hikashop are stored in the same folder and if you have to select an image from a 500+ images folder it's hard to pick one.  I know I can make folders through FTP or in the Media Manager and upload them there, but in that case you have to leave Hikashop. And that's not user friendly for the customers.  Hope you understand me now ;-)  Kind regards, Lumiga")*

Hi,

has this feature been implemented?
We see in the storeFiles function in the admin files class there is the variable $subPath.
Can this be used to specify a particular sub folder in which to save a file?

Thanks

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14293
-
-

7 years 10 months ago [\#302005](#302005) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[upload image with option to choose your own map](/forum/50-feature-request/891961-upload-image-with-option-to-choose-your-own-map#302005 "-- HikaShop version -- : 3.2.0 -- Joomla version -- : 3.7.5 -- PHP version -- : 7  Hi Hikashop,  It would be nice when you upload an image for a product or category in Hikashop that you could choose your own (sub)folder. So you can organise all your images in your own folder structure. I know there is a setting in the configuration for the upload folder url. But now all images uploaded to Hikashop are stored in the same folder and if you have to select an image from a 500+ images folder it's hard to pick one.  I know I can make folders through FTP or in the Media Manager and upload them there, but in that case you have to leave Hikashop. And that's not user friendly for the customers.  Hope you understand me now ;-)  Kind regards, Lumiga")*

Hi,

No it hasn't.
The SubPath can allow you to specify a particular sub folder in which to save a file when you call the storeFiles function, yes. However, I don't see how that will help you ?

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

- **[jameswadsworth](/forum/user/556-jameswadsworth "View jameswadsworth's Profile")**
- [![jameswadsworth's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/556-jameswadsworth "View jameswadsworth's Profile")
- [ Offline](/forum/user/556-jameswadsworth)

Less More

- Posts: 274
- Thank you received: 5
-
-
-
- [](http://www.deanimaconsulting.com)
-

7 years 10 months ago [\#302054](#302054) by [jameswadsworth](/forum/user/556-jameswadsworth "View jameswadsworth's Profile")  Replied by *[jameswadsworth](/forum/user/556-jameswadsworth "View jameswadsworth's Profile")* on topic *[upload image with option to choose your own map](/forum/50-feature-request/891961-upload-image-with-option-to-choose-your-own-map#302054 "-- HikaShop version -- : 3.2.0 -- Joomla version -- : 3.7.5 -- PHP version -- : 7  Hi Hikashop,  It would be nice when you upload an image for a product or category in Hikashop that you could choose your own (sub)folder. So you can organise all your images in your own folder structure. I know there is a setting in the configuration for the upload folder url. But now all images uploaded to Hikashop are stored in the same folder and if you have to select an image from a 500+ images folder it's hard to pick one.  I know I can make folders through FTP or in the Media Manager and upload them there, but in that case you have to leave Hikashop. And that's not user friendly for the customers.  Hope you understand me now ;-)  Kind regards, Lumiga")*

Hi Nicolas, I hope you had a good Christmas.

The $subPath variable does help up. However we encountered a problem with the function getPath. Even if we passed the $subPath variable to the getPath function, the getPath function only returned the $uploadFolder without the $subPath. To "get it working" we changed the last line in the function getPath to. Code:

return $uploadFolder.$subPath;

Would it also be possible in future releases to add the variable $subPath to the function deleteFiles?

Thanks, James

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14293
-
-

7 years 10 months ago [\#302058](#302058) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[upload image with option to choose your own map](/forum/50-feature-request/891961-upload-image-with-option-to-choose-your-own-map#302058 "-- HikaShop version -- : 3.2.0 -- Joomla version -- : 3.7.5 -- PHP version -- : 7  Hi Hikashop,  It would be nice when you upload an image for a product or category in Hikashop that you could choose your own (sub)folder. So you can organise all your images in your own folder structure. I know there is a setting in the configuration for the upload folder url. But now all images uploaded to Hikashop are stored in the same folder and if you have to select an image from a 500+ images folder it's hard to pick one.  I know I can make folders through FTP or in the Media Manager and upload them there, but in that case you have to leave Hikashop. And that's not user friendly for the customers.  Hope you understand me now ;-)  Kind regards, Lumiga")*

Hi,

It would be problematic to change the behavior of the subPath function as it will affect HikaMarket which relies on that subPath variable. Changing it will introduct a break of compatibility. It would be better if you could just copy that function in your custom code. Note that if you need to change the behavior of that function being used by other functions in HikaShop, you can do an override of the hikashopFileClass class and redefine that function in your override.
Adding a $subPath variable to the deleteFiles function is possible yes.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUwLWZlYXR1cmUtcmVxdWVzdC84OTE5NjEtdXBsb2FkLWltYWdlLXdpdGgtb3B0aW9uLXRvLWNob29zZS15b3VyLW93bi1tYXA/dG1wbD1tYXJrZG93bg==) 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?

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

Time to create page: 0.058 seconds

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