FileUpload using silverlight client OM in sharepoint 2010 document Library

Posted on 2011-10-17
Last Modified: 2013-11-26

I want to create a single File Upload control to upload (word) documents into sharepoint Library.

I referred this link..


but i didn't know how  allFiles & lstFiles  come ? where to declare them and what ?

can anyone tell me ?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
byte[] dataArray = allFiles[lstFiles.Items[0].ToString()];

Thanks in advance .
Question by:sharepointDepot
    LVL 14

    Expert Comment


    Author Comment


    Its bit complictd and user need to drag and drop files exact on shown doc library.

    I want simple UI like this..

    But unfortunately this application is windows based and getting difficulty to change to Sharepoint.

    so can anyone help me for a neat silverlight based cotrol to upload doc to SP 2010 library.

    LVL 14

    Accepted Solution

    Dragging is just the front-end. you can change it to a simple browse and upload. Look at the UploadFile method for the actual upload logic.

    Author Comment


    abhitriq !

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Suggested Solutions

    Title # Comments Views Activity
    SharePoint JSOM error 7 32
    C# Winform panel within a panel 4 31
    Richtextbox formatting 8 18
    VB.Net - Find String in Array 3 17
    For SharePoint sites, particularly public-facing ones, there are times when adding JavaScript, Meta Tags, CSS Styles or other content to the page <head> section is more practical than modifying master pages.  For instance, you could add the jQuery l…
    More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
    This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA.…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now