November Happy Hour will be moved to Thursday December 5th.

Importing files into Global Assets using the ContentChannelService

Vote:
 

Is it possible to use the ImportFile() operation in the ContentChannelService to import files into a Global Assets folder?

So far, I've only been able to import files directly into the blob or as a page file. If I try to pass in the content Guid of the SysGlobalAssets (or any global assets folder), the web service throws a null ref exception.

Based off method naming in the EPiServer.ContentChannels.ContentMediaHandler, specifically the ImportContentAssetMedia() method, I'm assuming that the web service doesn't support importing files into global assets.

Am I missing something?

#114668
Dec 17, 2014 23:38
Vote:
 

Setting the channel to default to ~/globalassets/ seems to be the solution here.

With the following channel config, pushing files into the global library works.

/Jonas

#114716
Edited, Dec 18, 2014 23:21
Vote:
 

Thanks Jonas!

#114717
Dec 18, 2014 23:22
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* 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.