WebFile.Name value


I’m wondering, if a WebFile is created from a FolderItem, is the WebFile.Name the same as FolderItem.Name or FolderItem.DisplayName?


How complicated can it be to create a small program to test and see ?

It would be super easy, but honestly, I never personally saw a difference in those 2 values. Name and DisplayName was always the same for me.

The parameter you are looking for is WebFile.Filename. There is no WebFile.Name property.

That said, WebFile.Filename is by default set to Folderitem.Name but can be changed if you want it to download with a different name.

Thanks again Greg for the fast and clear anwser! I meant Filename instead of Name indeed.