A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
AI OnAI Off
A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
Hi,
Folders are like regular content. so...
var repository = ServiceLocator.Current.GetInstance();
var folder = repository.GetDefault(yourParentContentLink);
folder.Name = "Test";
var folderReference = repository.Save(folder, SaveAction.Publish, AccessLevel.NoAccess);
Hi,
Iam trying to create a sub folder from the code and i have the ContentReference of the parent folder.
I know how to add a media file to an existing folder(using blob factory),
but before i add the file i want to create a sub folder programically, get its contentLink and then add the file to it.
Somebody know how to do that?
Manually i can do it by doing a right click on a folder and choose New Folder.
Thank You!
Zvika Kozniak.