Uploading from filexplorer to sql database

3 posts, 0 answers
  1. fred williams
    fred williams avatar
    55 posts
    Member since:
    Feb 2010

    Posted 03 Nov 2010 Link to this post

    Is this possible? If so can someone point me to an example? thanks.

    edit: I've seen the demos to populate the file exlporer with database values, but all I want to do is be able to upload to a database. The file explorer would populate with values from a filesystem. 
  2. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 08 Nov 2010 Link to this post

    Hello Fred,

    In your case you can subclass the RadFileExplorer's default provider (Telerik.Web.UI.Widgets.FileSystemContentProvider) and override its StoreFile method:
    public override string StoreFile(UI.UploadedFile file, string path, string name, params string[] arguments)
    {
        throw new NotImplementedException();
    }

    Then, you need to implement your logic in that method that will save the file to the database.

    Best wishes,
    Fiko
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. fred williams
    fred williams avatar
    55 posts
    Member since:
    Feb 2010

    Posted 08 Nov 2010 Link to this post

    Thanks for your reply. So all I need to do is add the code to upload to the database in the same method, after the "throw new notimplementedexpception" line?
Back to Top