Try our conversational search powered by Generative AI!

how to put a json file in DAM?

Vote:
 

If I drag an image into the media asset thing (the folder symbol in the top right, then choose the "media" tab, then chose a folder) I can then view that image in a web browser using the globalassets usl, such as: https://www.mysite.com/globalassets/brand/somebrand/somedir/images/my.jpg Now I need to server a static json file.  If I drag and drop a json file into the DAM media window, it seems to accept it, and if I try twice, it says it already exists. But if I browse that directory (the dialog below it strangely called powerslice), I cant see it in the list, and if I try to access my new static json media, I get a 404.  E.g.  https://www.mysite.com/globalassets/brand/somebrand/somedir/images/some.json

Is there any way to get json files recognised as media, or some other way to serve json which doesnt require proamming?

#222540
May 07, 2020 9:46
Vote:
 

I found this link: https://world.episerver.com/documentation/Items/Developers-Guide/Episerver-CMS/9/Content/Assets-and-media/Media-types-and-templates/

So it looks like we require development (and releases) to support json.  Shame.

#222541
May 07, 2020 9:59
Vote:
 

OK, so I have added a media class, and now I can upload and server json files.  but We cant preview them. As they are just text, it should not be too hard, but I have no idea how to do this.  Any suggestions?

#223169
May 20, 2020 14:59
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.