File / database storage

  •  03-04-2008, 5:12 AM

    File / database storage

    Hi,
     
    I have extended the CuteEditor.Impl.FileStorage class to create a new class MixedStorage for file storage. I can view and upload files, create and rename folders using my overridden methods (public override string RenameDirectory(string dirpath, string name). However, when I try to rename a file it fails. CuteEditor does Server.MapPath(dirpath + name) in CuteEditor.Dialogs.FileBrowserPage (in hiddenAction_ServerChange method at line 663 in my version of the source code). This of course fails, as the file doesn't exist on the server but rather in a database. Why does it not simply run the RenameFile method in MixedStorage?
     
    Please advice.
     
    Regards,
    Sjur

View Complete Thread