Uploading to _catalogs/masterpage

Aug 11, 2012 at 11:19 AM

Not sure if this is meant to work for this directory but I'm having an issue with it.

It will upload, check in and publish fine providing the file doesn't already exist withing there. If it does, not even -overwrite will upload the file, it just errors without giving an explanation.

If I manually delete the files, all works well again.

Is there a way round this? This is the only thing that's stopping me using this to deploy all the assets into the farm without me having to build a VS solution to do it.



Aug 13, 2012 at 11:36 AM
Edited Aug 13, 2012 at 11:36 AM

Seems I've answered my own question, for the _catalogs library the files need to be checked out first for them to be able to be overridden.

I added an extra flag to check the file out if it exists.