Vulnerability in EPiServer.Forms

Try our conversational search powered by Generative AI!

Saving to UnifiedFile Summary properties

Hi there, I'm saving a file to the UnifiedFileSystem as outlined in SDK. I'd like to add some data to the file meta-data, but whatever I add seems to not be saved. UnifiedDirectory dir = UnifiedFileSystem.GetDirectory("/upload"); UnifiedFile file = dir.CreateFile("Myfile.txt"); file.Summary.Author = "Test"; Stream s = file.OpenWrite(); StreamWriter w = new StreamWriter(s); w.WriteLine("Hello world!"); w.Close(); s.Close(); Should i be doing this some other way? Regards, Ben Empson
Mar 30, 2006 19:13
* 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.