This is a migrated thread and some comments may be shown as answers.

Uploading from filexplorer to sql database

2 Answers 51 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
fred williams
Top achievements
Rank 1
fred williams asked on 03 Nov 2010, 06:46 PM
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 Answers, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 08 Nov 2010, 04:03 PM
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
0
fred williams
Top achievements
Rank 1
answered on 08 Nov 2010, 04:10 PM
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?
Tags
FileExplorer
Asked by
fred williams
Top achievements
Rank 1
Answers by
Fiko
Telerik team
fred williams
Top achievements
Rank 1
Share this question
or