FileItem vs PathItem

  •  12-09-2013, 3:15 PM

    FileItem vs PathItem

    I wrote a custom FileProvider for CuteEditor 6 which works perfectly and I'm trying to convert it for RichTextEditor 8. 

     

    The main problem I have is that the new PathItem class returned by the GetFiles method has a "Name" property but doesn't have a URL like the FileItem had in CE 6. This is a problem for me because some of my files have cryptic physical names like "aad034xsfd4.txt" but I want to display a user-friendly name. I was able to do this very easily in CE 6

    1. var file = new FileItem()  
    2. {  
    3.       Name = "Letter from the CEO",  
    4.       Url = "aad034xsfd4.txt"  
    5. };  

    The friendly name would be displayed to my users but the URL would be used to retrieve the content of the file. This doesn't seem to be possible anymore in RTE 8. Am I correct?

     
View Complete Thread