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

Handling file upload in SL not Web Project

3 Answers 79 Views
Upload
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 19 Nov 2011, 10:57 AM
Hi,

I have a Silverlight project that uses a standard file dialog to upload a file. The file is brought in to memory, processed and serailised to a database, no Web Project involvement. I'd like to swap out the standard file dialog for a Telerik RadUpload, but keep the existing SL methods. Is it possible to not use the ServiceUrl and handle the upload in SL, taking advantage of the great functionality such as the upload indicator percent?

Thanks.

3 Answers, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 23 Nov 2011, 06:12 PM
Hi Michael,

 The RadUpload control must use an upload handler on the server in order to transfer its data. This handler is represented by a Generic (Ashx) Handler class that derives from the RadUploadHandler class. We wanted to mention this because we are not sure we understood your sceanario.
What are the exact controls/functionalities that you need from the RadUpload? Is it only the ProgresBar ? Could you please elaborate more on your scenario so that we would be better able to advice you.

All the best,
Petar Mladenov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
James
Top achievements
Rank 1
answered on 24 Nov 2011, 04:12 PM
Hi Petar,

To explain further. I have an MVC site with a Silverlight application in it. The silverlight application has a file uploader which runs off of standard file dialog controls. Currently once a file is selected and submitted the silverlight application reads the filestream in to memory, processes the file, and serialises it to the database via DomainServices.

I'd like to swap out the standard Silverlight file control for your much better Telerik RadUpload, but want to keep the existing code. Is this possible?

Michael
0
Alex Fidanov
Telerik team
answered on 29 Nov 2011, 03:26 PM
Hello Michael,

It is possible to replace your uploading mechanism with the upload control, but you would have to process the file on the server. You can look at our knowledge base article for processing files on the server after upload here or how to save a file into database here. You could use these code samples to adjust the upload control for your scenario and environment. Please let us know if you have further questions on this matter.

Greetings,
Alex Fidanov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
Upload
Asked by
James
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
James
Top achievements
Rank 1
Alex Fidanov
Telerik team
Share this question
or