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

API to provide list of files ?

1 Answer 68 Views
CloudUpload
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 29 Jun 2015, 06:47 AM

Hi.

I'm currently working on a dialog to upload files to our cloud service. Since we just acquired a Telerik license, I thought I'll go through the controls, and see what we can take advantage of.

The CloudUpload dialog seems to be exactly what I want. The only caveat, is that our workflow permits for opening a File Open dialog, as well as drag/drop onto a grid. Is it possible for the CloudUpload control to accept a list of files, hence negate the need for the browse button ?

 Thanks.

1 Answer, 1 is accepted

Sort by
0
Petar Marchev
Telerik team
answered on 01 Jul 2015, 07:55 AM
Hello Michael,

The cloud upload control is divided into a few separate entities that handle different tasks.

1. The RadCloudUpload control which allows for the user to select files and operate on the selected files (it's like a command center that tells the files to get uploaded or cancel the uploads).

2. The provider which handles the uploading process (the upload to a specific storage drive).

3. The RadCloudUploadList which simply displays the list of uploads and the RadCloudUploadListItem which visualizes info for an upload (progress, file size ...).

4. The CloudUploadFile which is the entity that wraps a certain file and exposes an API for commanding that file upload.

The RadCloudUpload does not have methods that would allow you to add files in code, so I do not think that you can use this one. You can use the rest of the elements to get what you require. You need to create a CloudUploadFile for each file you need to upload. You can place these items in a collection and feed a RadCloudUploadList in order for the uploads to get displayed. You can then (if needed) write your own 'command center' where you can have two buttons (Upload All, Cancel All) or whatever you need - simply iterate the CloudUploadFile items in the collection and tell them what to do (StartUpload, RequestCancel ...).

I hope this information suffices. Let us know if you need more information.

Regards,
Petar Marchev
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
CloudUpload
Asked by
Michael
Top achievements
Rank 1
Answers by
Petar Marchev
Telerik team
Share this question
or