The next step is to add our existing Silverlight application to our solution. Browse other questions tagged c asp.net silverlight file-upload silverlight-4.0 or ask your own question. From the project under solution explorer, delete ‘Sample.txt’ file and also delete the entry – Choose ‘Module’ from the SharePoint > 2010 section. Below is a sample which is using HttpRequest. To add a module, right click the SharePoint Empty project and add a new item. Hi Uripelli, To get the processing information while uploading, you'd better use another HttpRequest or WCF.
The modules are used to deploy the files to SharePoint sites. Then it is up to the server logic to decide what to do with those files. This way, when the last file gets uploaded, the server will contain a string with the names of all files. To get things working, start by renaming the. Basically, every time we start to upload a file, we send a string with the full names (path + name) of all files that have been uploaded so far. Decreasing the buffer size will also decrease the upload speed. A bigger buffer means faster upload and a bigger chance for timeout. The buffer determines the size of the chunks and is measured in bytes.
#How to upload file in silverlight sample zip file#
Now let’s add a ‘Module’ to our SharePoint project. zip file but with another extension, Silverlight supports the. The files uploaded through the RadUpload are separated in chunks, which get send one by one to the server. Now your project will look like the following – So let’s create an ‘Empty SharePoint 2010 Project’ with the name ‘DeploySilverlightApp’ as shown below –Ĭlick ‘OK’ and choose ‘Deploy as a Sandboxed Solution’ option by providing SharePoint Site URL –