Skip to main content

Notifications

Announcements

No record found.

Supply chain | Supply Chain Management, Commerce
Suggested answer

Extend file types in module field type "image" and Sitebuilder Media Library upload

(0) ShareShare
ReportReport
Posted on by 35

Inside of my (custom) Sitebuilder modules I'm using the core image implementation/component similar to existing OOTB modules from @msdyn365-commerce-modules.

Simple example how I set up the field configuration in my module definition file:

{
    "$type": "moduleDefinition",
    "name": "dummy",
    "config": {
        "image":{
            "friendlyName": "Image",
            "description": "Footer item image",
            "type": "image"
        }
    }
}

Two questions:

  1. How can I extend the filetypes that can be uploaded with the Sitebuilder Media library? Example: I tried to upload an .ico file. I got an error message saying it's not possible to upload this file
  2. How can I extend the "file picker dialog" where I can select the needed image for the field? Right now it looks like that I can only select .png and .jpg. Example: I uploaded an .svg but it's now selectable inside the "file picker dialog" 
  • Suggested answer
    Ana Teles Profile Picture
    Ana Teles on at
    RE: Extend file types in module field type "image" and Sitebuilder Media Library upload

    Hello Daniel,

    I will leave this for the community to answer since this is about customization. Let's see if anybody has experienced the same and can advise for you anything.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,602 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,340 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans