Custom File Storage for images and files

  •  06-19-2006, 12:27 PM

    Custom File Storage for images and files

    Hi, here is my problem:
     
    I have a separate storage for image and documents.  Their starting path is different and the way to retrieve the content is also different.  I am using Microsoft CMS as the storage for the images (in Resources) and documents (in Channel).  I have coded a customFileStorage class following the example provided for the SQL Database.  It works.  However, I have the following 2 questions:
     
    1. Now, this customFileStorage class is set to setting["CuteEditorFileStorageType"] and is sharing for both inserting images and dowonloaded document.  Is there a way that I can set separate classes for images and documents?
     
    2. If the above is impossible, is there a way for me to know which icon is actually being clicked (insert image or downloadable files).  That way I can have some logic in my customFileStorage class to do different things.
     
    Please someone help me with this.  This is really urgent.
     
    Thank you very much,
     
    Richard
View Complete Thread