• Not Answered

Using the $core_v2_cfs.Get API

Hi all,

I'm trying to get the path / url of a file that was uploaded using the site files in System Administration.

I can not get hold of the url / path using the widget API ($fileResponse is always null):

  • #set($fileResponse = $core_v2_cfs.Get("CommunityServer.Components.SelectableAvatars","0c99b8a9.8751.4311.8a61.704040c27014", avatar.png))

However, if  use the REST API, I can get the file data:

I have used the example above as in the developer 5.x documentation as this is the only usable example. 

The files that I'm interested in are located in: communityserver.components.sitefiles\themes.

On a side note, what if my files are located in  communityserver.components.sitefiles, what will the path be?


Thanks in advance !