如何在 Alfresco 中从另一个文件(例如 index.html)引用一个文件(例如 testaudio.mp3)
How to reference a file (e.g. testaudio.mp3) from another file (e.g. index.html) in Alfresco
我在 Alfresco 的 "audio" 文件夹中有一个 mp3 文件。我想要一个 link 指向位于另一个文件夹中的 index.html 文件中的那个文件。
例如:<a href="pathToTheFile>test song 1</a>
我将如何引用该文件?我试过 href="/share/proxy/alfresco/api/node/content/workspace/SpacesStore/xxx-xxx-xxxxx/testMP3.mp3"
但它不起作用。或者 Alfresco 甚至有可能吗?我正在使用网络界面。
我很抱歉没有说清楚。我正在使用 Alfresco Explorer Community Edition 进行管理,我正在使用的网站基于 Spring MVC 并从 Alfresco 中的 index.html
文件中提取内容。
目前我需要使用<embed>
标签来包含mp3文件到index.html
,并且mp3文件也存储在Alfresco存储库中但是在不同的文件夹中。
如何从 index.html
文件中引用 mp3 文件?当 index.html
部署到客户端网站时,引用必须工作,目前客户端网站正在以下列方式引用 Alfresco 中的文件:<img src=/asset/xxxxxx-xx-xxx/test.png>
(没有 asset
文件夹Alfresco 存储库,以及以某种方式起作用的...)。但这对我的 mp3 文件不起作用...
要使用 RESTful api 访问露天内容,您应该查询此网络脚本:/alfresco/d/<d|a>/<workspace>/<store>/<nodeId>/<filename>
其中:
d
和a
指的是直接/附加模式
<workspace>
、<store>
和 <nodeId>
引用您的内容 nodeRef
<filename>
您选择的文件名
所以你的 URL 应该看起来像这样 http://<host>:<port>/alfresco/d/d/workspace/SpacesStore/8444ad61-4734-40e3-b2d4-b8b1c81347fd/test.mp3
注意: 根据您节点上设置的权限,您可能需要将 alf_ticket 附加到 URL 以供经过身份验证的露天用户使用。请检查 this 以获取更多信息。
我在 Alfresco 的 "audio" 文件夹中有一个 mp3 文件。我想要一个 link 指向位于另一个文件夹中的 index.html 文件中的那个文件。
例如:<a href="pathToTheFile>test song 1</a>
我将如何引用该文件?我试过 href="/share/proxy/alfresco/api/node/content/workspace/SpacesStore/xxx-xxx-xxxxx/testMP3.mp3"
但它不起作用。或者 Alfresco 甚至有可能吗?我正在使用网络界面。
我很抱歉没有说清楚。我正在使用 Alfresco Explorer Community Edition 进行管理,我正在使用的网站基于 Spring MVC 并从 Alfresco 中的 index.html
文件中提取内容。
目前我需要使用<embed>
标签来包含mp3文件到index.html
,并且mp3文件也存储在Alfresco存储库中但是在不同的文件夹中。
如何从 index.html
文件中引用 mp3 文件?当 index.html
部署到客户端网站时,引用必须工作,目前客户端网站正在以下列方式引用 Alfresco 中的文件:<img src=/asset/xxxxxx-xx-xxx/test.png>
(没有 asset
文件夹Alfresco 存储库,以及以某种方式起作用的...)。但这对我的 mp3 文件不起作用...
要使用 RESTful api 访问露天内容,您应该查询此网络脚本:/alfresco/d/<d|a>/<workspace>/<store>/<nodeId>/<filename>
其中:
d
和a
指的是直接/附加模式<workspace>
、<store>
和<nodeId>
引用您的内容 nodeRef<filename>
您选择的文件名
所以你的 URL 应该看起来像这样 http://<host>:<port>/alfresco/d/d/workspace/SpacesStore/8444ad61-4734-40e3-b2d4-b8b1c81347fd/test.mp3
注意: 根据您节点上设置的权限,您可能需要将 alf_ticket 附加到 URL 以供经过身份验证的露天用户使用。请检查 this 以获取更多信息。