RadUploadHandler in WCF Service

6 posts, 0 answers
  1. Sodi We
    Sodi We avatar
    160 posts
    Member since:
    Apr 2010

    Posted 23 Apr 2010 Link to this post

    Hello,

    We are using the RadUpload in a silverlight application. To upload our documents we would like to use a WCF Service to upload documents to and let the service do the necessary processing. The idea is to put the files in SQL Server 2008 using the FileStream attribute.

    The problem is that the Radupload uses a UploadServiceUrl which points to a generic handler in the webapplication.

    Is there a way or a solution to call the WCF service with the upload-control and let the generic handler be defined in the WCF Service?

    thanks in advance,
    Geert
  2. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 23 Apr 2010 Link to this post

    Hello Sodi We,

    At the moment you can't use a WCF service. Why you can't use the generic handler? We are gathering feedback about what are the scenarios that the WCF service enables.

    Best wishes,
    Valentin.Stoychev
    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. DevCraft banner
  4. Sodi We
    Sodi We avatar
    160 posts
    Member since:
    Apr 2010

    Posted 23 Apr 2010 Link to this post

    Dear,

    The reason is security and asynchronous implementation + remove the processing to a service instead of the silverlight app.

    security: Using the filestream attribute in SQL Server 2008 the connection to the database is to be made by windows authentication. Therefor we created a functional windows account that runs the service and is responsible for the connection to the database server.

    I hope this can help as some feedback. Maybe there is a equivalent by using the generic handler that I do not see for the moment.

    thanks in advance
    Geert
  5. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 28 Apr 2010 Link to this post

    Hi Sodi We,

    Thank you for this feedback - it was valuable for us!

    Kind regards,
    Valentin.Stoychev
    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.
  6. Aravind
    Aravind avatar
    9 posts
    Member since:
    Oct 2012

    Posted 20 Nov 2012 Link to this post

    hai 
    now support rad upload handler in wcf service ?
    if yes means pls help me ,i upload files using upload handler in wcf service to insert into database,and also check if file name is already present in database ,rename the currently upload files using some popup window or some panel .

                  pls reply asap thanx in advance................
  7. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 22 Nov 2012 Link to this post

    Hello Aravind,

    The RadUpload control has two parts - client and sever part. And at the moment the client part of the control triggers an upload operation that can only be handled by a RadUploadHandler on the server. And you can modify the RadUploadHandler implementation to save the uploaded files in a database rather than in a folder on the server. However, the control doesn't provide a server-side mechanism for calling a popup/window for renaming files.

    Basically you can rename the files for upload on the server in the UploadHandler implementation as I demonstrated in this forum thread or you can validate the uploaded files on the client side. Please take a look at this tutorial describing the validation mechanism exposed by the RadUploadItems. In your case you can handle the Validate event to use a WCF service to traverse your database tables to see if the file with the same name is already saved in the database. In case it is, you can use the RadWindow control to Prompt the user to rename the file and restart the upload operation.

    All the best,
    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top
DevCraft banner