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

#   Restrict files upload by extension

##

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

Less More

- Posts: 19
- Thank you received: 0
-
-

7 years 4 months ago [\#308307](#308307) by [OPHWD](/forum/user/58074-ophwd "View OPHWD's Profile")  *[Restrict files upload by extension](/forum/20-market-feature-requests/897806-restrict-files-upload-by-extension#308307 "-- HikaShop version -- : 4.1.0 -- HikaMarket version -- : 3.0.2 -- Joomla version -- : 3.9.5 -- PHP version -- : 7.1 -- Error-message(debug-mod must be tuned on) -- : No error message  How can we restrict file uploads by extension for different group users?")* was created by *[OPHWD](/forum/user/58074-ophwd "View OPHWD's Profile")*

-- HikaShop version -- : 4.1.0
-- HikaMarket version -- : 3.0.2
-- Joomla version -- : 3.9.5
-- PHP version -- : 7.1
-- Error-message(debug-mod must be tuned on) -- : No error message

How can we restrict file uploads by extension for different group users?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIwLW1hcmtldC1mZWF0dXJlLXJlcXVlc3RzLzg5NzgwNi1yZXN0cmljdC1maWxlcy11cGxvYWQtYnktZXh0ZW5zaW9uP3RtcGw9bWFya2Rvd24=) 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: 4079
-
- [](http://obsi.dev)
-

7 years 4 months ago [\#308343](#308343) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Restrict files upload by extension](/forum/20-market-feature-requests/897806-restrict-files-upload-by-extension#308343 "-- HikaShop version -- : 4.1.0 -- HikaMarket version -- : 3.0.2 -- Joomla version -- : 3.9.5 -- PHP version -- : 7.1 -- Error-message(debug-mod must be tuned on) -- : No error message  How can we restrict file uploads by extension for different group users?")*

Hello,

Just like the "max_file_size", you can add an option "allowed_extensions" to the array structure in order to override the default setting.
When you're uploading an image, the HikaShop configuration setting for image extension is used.
And when you're uploading a file (not an image), it's the HikaShop configuration setting for the file extensions.

So with the new trigger that I will add into HikaMarket, you will also have the possibility to add your custom behavior.
But, I do like the idea of having new "Access Level options" in HikaMarket for these upload restrictions ; so I think that I will work on them for a future release too !

Regards,

---

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

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

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

Less More

- Posts: 19
- Thank you received: 0
-
-

7 years 4 months ago [\#308500](#308500) by [OPHWD](/forum/user/58074-ophwd "View OPHWD's Profile")  Replied by *[OPHWD](/forum/user/58074-ophwd "View OPHWD's Profile")* on topic *[Restrict files upload by extension](/forum/20-market-feature-requests/897806-restrict-files-upload-by-extension#308500 "-- HikaShop version -- : 4.1.0 -- HikaMarket version -- : 3.0.2 -- Joomla version -- : 3.9.5 -- PHP version -- : 7.1 -- Error-message(debug-mod must be tuned on) -- : No error message  How can we restrict file uploads by extension for different group users?")*

Great.
Do you have an idea when this option could be ready?
Regards !!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIwLW1hcmtldC1mZWF0dXJlLXJlcXVlc3RzLzg5NzgwNi1yZXN0cmljdC1maWxlcy11cGxvYWQtYnktZXh0ZW5zaW9uP3RtcGw9bWFya2Rvd24=) 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: 4079
-
- [](http://obsi.dev)
-

7 years 4 months ago [\#308632](#308632) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Restrict files upload by extension](/forum/20-market-feature-requests/897806-restrict-files-upload-by-extension#308632 "-- HikaShop version -- : 4.1.0 -- HikaMarket version -- : 3.0.2 -- Joomla version -- : 3.9.5 -- PHP version -- : 7.1 -- Error-message(debug-mod must be tuned on) -- : No error message  How can we restrict file uploads by extension for different group users?")*

Hello,

We are working on some developments regarding payment methods and subscriptions ; we also have some tasks for HikaMarket but I admit that I don't have any schedule for the implementation of your feature request.
The trigger implementation is mostly done, just need a validation test. The "max file size" per access level require a bigger development and have various impacts in the product ; specially if we want to have one setting or several in order to make a distinction between product files and product images.

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIwLW1hcmtldC1mZWF0dXJlLXJlcXVlc3RzLzg5NzgwNi1yZXN0cmljdC1maWxlcy11cGxvYWQtYnktZXh0ZW5zaW9uP3RtcGw9bWFya2Rvd24=) 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.043 seconds

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