Newbie upload questions

4 posts, 0 answers
  1. Gary Blakely
    Gary Blakely avatar
    63 posts
    Member since:
    Jan 2010

    Posted 22 Aug 2010 Link to this post

    After reading your docs on Upload, I make a reference to Telerik.Windows.RadUploadHandler in my WCF web service project and create an .ashx file with the following contents...


































    public class UploadHandler : RadUploadHandler





    The first problem is that type or namespace "RadUploadHandler" could not be found.  So what did I do wrong?

    After reading further in the docs, it appears that the control simply puts a file into a folder on the server.  But that's no good because I need to process the file in my WCF service.  What good would it be to upload a file if I can't process it?

    Can you help me out here?

  2. Miroslav
    Miroslav avatar
    922 posts

    Posted 25 Aug 2010 Link to this post

    Hi Gary Blakely,

    The RadUploadHandler is just a web handler and is not dependent on WCF. If you want to extend it, you can override certain methods in your UploadHandler class.

    You can also try using WCF alone where the file upload will be a binary field on an object that will be sent to the server. This will involve more code on the client though.

    With the RadUpload you get features like uploading multiple files, uploading in chunks, ready UI and others. To integrate it with your application, override methods on the upload handler - there are KB articles for certain scenarios:

    This one can be something that you can use:

    Depending on what you want to achieve, you can add the file to your DB (or its path for example).

    The missing reference may appear as an error because the RadUploadHandler assembly has not been added to the web project.

    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. d
    d avatar
    1 posts
    Member since:
    Aug 2011

    Posted 25 Aug 2011 Link to this post

    I really baffled by this control.

    Im using Silverlight.

    I upload a file, it is saved to the web server.

    I need a byte array in my business object.

    Why does the control not stream the file directly to the silverlight object? Im really confused. So to get the file, I have to upload the file, then get a URL to it on my web server, then stream it, again, back across the wire so I can use it in my business object?

    Please tell me Im going mad... or help..

  4. Petar Mladenov
    Petar Mladenov avatar
    2991 posts

    Posted 30 Aug 2011 Link to this post

    Hi D,

     In Silverlight, there is a limitation that restricts you from operating directly with the file system. Could you please elaborate more on your scenario so that we would be better able to assist you? I guess you mean Silverlight application when saying "Silverlight object"?

    Petar Mladenov
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Back to Top