Importing files into Global Assets using the ContentChannelService


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?

Dec 17, 2014 23:38

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.


Edited, Dec 18, 2014 23:21

Thanks Jonas!

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.