I have a simple method in surface controller after form submit, which has a file upload and name and email, but after saveandpulish, i get this error that "Cannot save content with an empty name"
This was helpful. Where can one find documentation for V8 Services.ContentService? (I have been looking, but possibly not carefully enough. Everything I turn up is pre-8)
Cannot save content with an empty name
I have a simple method in surface controller after form submit, which has a file upload and name and email, but after saveandpulish, i get this error that "Cannot save content with an empty name"
Any help regarding what am i missing? this worked fine in umbraco 7 for me
You must provide a name for the content object you're trying to save. In Umbraco 8 you have multiple ways to do that:
When you have multiple cultures configured, you can use:
Thanks Corné for response, my current code looks like this:
If you can please correct me in what i am missing here
I assume you've multiple languages configured?
Then I think you should use the
SetCultureName()
extension on theIContent
object for at least the required languages.Yes i have danish and english configured and i am trying to create this node in english language
Hi Rabea,
The methods in V8's IContentService allow you to specify a culture. :) Try the following:
This worked, thanks a lot
This was helpful. Where can one find documentation for V8 Services.ContentService? (I have been looking, but possibly not carefully enough. Everything I turn up is pre-8)
is working on a reply...