Silverlight Multi File Uploader

Thread is closed for posting
2 posts, 0 answers
  1. Ted Bielenda
    Ted Bielenda avatar
    9 posts
    Member since:
    Apr 2010

    Posted 28 May 2010 Link to this post


               I am using Silverlight MultiFile Upload Control For uploading multiple files and also using radupload when silverlight is not install on machine so how i can work both of these and in c# how i can save the file if these both are diffrent.


    telerik:RadAjaxPanel runat="server" ID="AjaxPanelMain" LoadingPanelID="LoadingExamplePanel" EnableAJAX ="true">



    <asp:Panel runat="server" ID="Panel1" Visible="true">



    <input type="hidden" id="UploadedFilesJson" runat="server" />



    <div class="upload-panel">



    <div class="upload">



    <object id="SilverlightUpload" data="data:application/x-silverlight," type="application/x-silverlight-2"



    width="400px" height="120px">



    <param name="source" value='<%= ResolveUrl("~/Upload.xap") %>' />



    <param name="background" value="white" />



    <param name="minRuntimeVersion" value="2.0.31005.0" />



    <param name="autoUpgrade" value="true" />



    <param name="windowless" value="true" />



    <param name="InitParams" value='<%= InitParameters %>' />



    <a href="" style="text-decoration: none;">



    <img src="" alt="Get Microsoft Silverlight"



    style="border-style: none" />






    <telerik:RadUpload ID="radUpload" ControlObjectsVisibility="All"









    runat="server" InitialFileInputsCount="5">












    <div class="uploaded-files" >
























    this code is giving me a javascript error, So please help me ho i can save the file in a folder.If i am using foreach loop than how i will use silverlight control for same.


    foreach (Telerik.Web.UI.UploadedFile file in radUpload.UploadedFiles)





    int position = file.FileName.LastIndexOf("\\");





     string fileName = (position == 0 ? file.FileName.Substring(position) : file.FileName.Substring(position + 1));






     string filePath = Server.MapPath(m_path + "/" + orderIdPath + fileName);







    Please Help me out this problem.


  2. Genady Sergeev
    Genady Sergeev avatar
    1600 posts

    Posted 28 May 2010 Link to this post

    Hello Ted Bielenda,

    Could you please clarify your requirement, what do you mean by how i can save the file if these both are diffrent.

    As for how to determine whether the client has Silverlight installed or not, please take a look at the following video.

    Genady Sergeev
    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.
Back to Top