简体   繁体   English

在SDL Tridion 2011中将JSON文件上载为多媒体组件

[英]Uploading JSON File as Multimedia Component in SDL Tridion 2011

I am trying to upload JSON files in Tridion and publish them. 我正在尝试在Tridion中上传JSON文件并发布它们。 I have created a new multimedia type for JSON files with MIME Type : application/json 我为MIME类型为:application / json的JSON文件创建了一个新的多媒体类型

I have then uploaded the file as multimedia component and published the file. 然后我将文件作为多媒体组件上传并发布了该文件。 I can see the file created at the delivery server, but when I try to read the file from the URL, it shows File Not Found. 我可以看到在传递服务器上创建的文件,但是当我尝试从URL读取文件时,它显示File Not Found。

I am using ASP.NET application at Delivery Server with IIS 7.5 我在使用IIS 7.5的Delivery Server上使用ASP.NET应用程序

Do I need to do some other configuration? 我需要做一些其他配置吗? Please Help. 请帮忙。

Thanks & Regards 感谢和问候

Sharad Kumar Sangal Sharad Kumar Sangal

You will need to add your file extension and mime type to IIS. 您需要将文件扩展名和mime类型添加到IIS。 If you need help doing so check out this link: 如果您需要帮助,请查看此链接:

http://www.iis.net/configreference/system.webserver/staticcontent/mimemap http://www.iis.net/configreference/system.webserver/staticcontent/mimemap

The actual values you need are probably .json for the file name extension and application/json for the MIME type. 你所需要的实际值可能.json的文件扩展名和application/json的MIME类型。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM