Last few days, I was busy nailing down some of the technical challenges with the current project. One typical challenge I had was to upload multiple documents and same meta data at one go. SharePoint 2007, does not provide this behavior out of the box.
What SharePoint provides? It allows you to upload multiple documents at one go but not attach meta data at once for all the documents. After uploading multiple documents, one will have to go to each respective uploaded document and add meta data manually.
As there was no ready made solution available on the web. I have decided to create a custom SharePoint page which will allow the end user to punch in the meta data and upload multiple documents all at once. Started with some asp controls for meta data and the Active X control which is provided by SharePoint for multiple uploads in the same page. I had to give up on SharePoint Active X control as there was not much documentation available on the web (Googling and binging showed nobody was able to get this control to work with meta data). If any body is able to get this to work, I would love to hear.
So, What I needed was a replacement for the SharePoint Active X control. I could not use asp.net FileUpload control as it is for uploading one document at a time. Evaluated couple of third-party controls for multiple uploads like AjaxUploader, Flajaxian and Roxority UploadZen. These controls are pretty good but did not fit the bill.
At this point, I was dis-heartened that I will not have a nice solution for the end-users of my site. A ray of hope has finally come from a control in CodePlex. I have been using many free controls from CodePlex and this was one of them, SILVERLIGHT MULTI FILE UPLOADER. Amazing silverlight control, which allows end-user to select multiple documents and upload them all at once.
Now, on my custom SharePoint page, I have couple of asp.net input controls for meta data and silverlight multi file uploader for uploading multiple documents. On submiting the page, it should capture all the meta data along with documents and add the documents to the document library. This is how my screen looked.
To get this to work, one will have to understand what are the components of silverlight multi file uploader control and what it does. So, here we go.
COMPONENTS OF SILVERLIGHT MULTI FILE UPLOADER:
- User Control : This is where I have the asp.net controls along with the silverlight control.
- Web Part : This web part has 3 custom properties defined (HTTPHandler, Document Library and Site). This web part also loads the user control.
- HTTP Handler : Uploads the documents to a temp storage and then to SharePoint document library.
- .XAP file : This .xap is linked in the User Control.
- Silverlight Control:
- This control allows the end-user to select and upload documents.
- This control also generates a .xap file which we will have to use in our user control.
- Control exposes both Managed and Java script API’s. I used java script api.
The meta data has to be passed along with the documents to the HTTP handler. We will have to grab the meta data from the input controls and pass them as CustomParams to the handler. The handler is to be modified as per the meta data being passed.
Awesome buddy………………
i am expecting more achievements like this……
This looks very awesome Dave. Congrats on building this. Regarding UploadZen, both Silverlight and metadata support are in the final stages of development and will be launched very shortly. But I appreciate and salute you for rolling your own =)
Dave,
This is exactly what I am look for! Is it possible for you to send me some sample code showing how you hooked it all up
thanks
Julian
Hi Dave,
Can I request for the sample code too?
Thanks..
Cylln
Dear Dave,
Can I have the source code of yours?
Cause I’m trying to develop multiple select upload webpart with metadata
Thankys
Hello,
I’m really interested in this … can you provide the code – more details how to implement?
Thanks Manuel
May I also have a copy of the code? Thank you very much!
Pancake why so few good blogs remain? This out of competition.
May I also have a copy of the code please. Thanx very much
May I also have a copy of the code? Thank you very much!
Would this work with Managed metadata too? I created a term store and need to figure out a way to upload multiple documents along with the some predefined metadata.
Can you provide sample code for your tool?
Thanks!
This is what I am try to do it, and I couldn’t find a way to do it..if it is okay, I would appreciate if I could have more detailed steps and a copy of code.. Thanks
Hi Dave,
This is really awesome and exactly what I am looking for!! Is it pssoible that I can have a copy of the code?
Thanks!
I would LOVE a copy of the code if avaialble. This is exactly what we are trying to do. Thanks for the info!
Hi Dave,
This is matching my requirement. May I also have a copy of the code Please ?
Thanks a lot for the post!!!
Hi Dava
Amazing feet!!
Highly appreciated if you could share some sample code!
Thanks
We are rolling out SharePoint 2007 sites to our manufacturing plants and they need the Multiple Upload with Metadata capability. Could I get a copy of your code and instructions or could you direct me to other sources. This will save our users tons of time.
Hi,
Great job!!
Can you give me your code please.
Thanks a lot.
Is it possible to share code or any sample code?
Thank you for pointing us to the Silverlight downloader, but would you please share a sample of how you were able to pass in metadata.
Hi Dave
Excellent work. Would it be possible to share some detailed steps/code.
Thanks.
Hi Dave,
Excellent article. I know you’ve gotten this question about a dozen times already, but is there any chance you’d be willing to share your source code? I would greatly appreciate it. I’m even willing to make a donation in return–you will be saving me a lot of time that I don’t have to spare 🙂
Thanks,
Larkin
It is actually a nice and useful piece of info. I’m satisfied that you simply shared this helpful information with us. Please stay us informed like this. Thank you for sharing.
Great post. Do you have the sourcecode that you can post?
This is exactly what I am looking for is there any way you can share the source code?
Wow… This is Great! One more over burdened developer from Canada asking if the source can be passed on?
Do anyone got the code or please share … Many thanks in advance
Dude! Stop being cruel – please post your code!!! 😉
I cannot post the code here as it is a client proprietary. Have been emailing the code separately whoever has asked for. Dont worry, will email you too 🙂
I need the code for the multiple Upload with Metadata. Can you email it to me
Nice, is it still possible to get the source code with metadata?
Hi PriteshDave,
I also like to use your code .Can you please send me to my email?
Thank you.
Hello,
I would love to get this source code too. Is it possible you send it to me by email ?
Thanks a lot !
Could I please get a copy of the source code and the steps you used please.
Could i get a copy of the source code as well. Been looking for something like this for ages. Good work.
Awesome article. Thank you very much
I downloaded teh code from Codeplex, but now I struggling with deploying it to my sharepoint solution. Could you help me wiht the instalation steps?
Regards
I agree with vivianne, not sure how to get this all integrated with my site.
Thanks,
Andy
Hi,
Also looking for some assistance to deploy to my sharepoint site. No access to VS so need a way to deploy directly from web interface (asking for too much???).
Thanks,
Mike
Hi Dave,
it’s awesome work :). I would really appreciate if you could send me the source code.
Dave,
Can you please send me the source code also? I have been looking for weeks and find exactly what i am looking for in you blog. Thanks in advanced!!
Pritesh,
Very nice article. I am looking for similar solution for one of my requirement. Appreciate, If you could share your code.
Thanks.
Hi Dave,
Geat work! Would it be possible to share some detailed steps/code.
Thanks.
Hi Pritesh,
Very nice article……..Salute your hard work done on this.
Could you please share the code for this. Really Appreciate !!! Thank You So much……
Hi Pritesh,
Nice work… This will fit perfectly for my requirement.Could you please share the code through mail.
Thank you so much
Hi Pritesh,
Nice work – can you please share the source code. Thank you so much…
Keep it up.
-Poonam
Hi Pritesh,
Good Article. I tried to implement same way but Silverlight control does not com e up. Can you please share the source code? We have to deliver the multiupload functionality asap.
I would also be interested in seeing this source code. Thank you.
Hi Pritesh,
very helpful information. Is is possible to provide source code? We have some technical problems with impelmenation. Thanks.
Have been trying to do this myself, but it’s got me puzzled.
I would also very much like to see the source code.
Thanks,
Gert
I have been searching for a solution like this for days. Could you send me your source code also?
Could i also have a copy of the source code? this looks like exactly what i need, why doesnt microsoft allow you to attach metadata to multiple files OOTB!!??
Hi.
Can you pls. mail me the code? Thanks.
I would appreciate to get the code as well.
Dave,
Would you mind sharing your code with me on how to do this. I would appreciate it very much. Thanks for this blog.
Hi please can you mail me the code as well.
Thanks
Great Article. If you are sharing the source code, I’d love to get a copy. Trying to do the same thing right now.
Awesome!! Request you to share the code…..
Hi, would your code be adaptable for vbscript? It’s the metadata bit I’m having problems with so your solution sounds like it could be very helpful! 🙂
Would you mind sending me the code too please?
Many thanks in advance!
Rohan
hi, Dave
Great article. I appreciate if you can share the code
Hi, great article.
Would appriciate if you can share the sample code.
Thanks in advance
Vijay
Would love the source code as well !
Would like a copy of the code as well.
Hello!
Great post and great job. I’d also love to get a copy of the code. It would be a huge help. Thanks a lot. Kind regards.
Hi,
I would like to get a copy of the code.
Thanks in advanced.
How do you add the references to Microsoft.Practices.SPG.Common.Logging?
I have been looking for this solution all over.
Can i have the copy of the code.
Thanks in advanced.
HI Dave, Can you please share the code with me too
Pritesh, Could you please share the code…Thanks
Pritesh,
May I have the copy of the code please.
Thanks
Can someone send me a copy to kevin.ko@kojutech.com?
Great work!!!!
thanks in advance.
I have to add my request for a source code copy as well, nice!!!
Thanks!
Hi
I’d like to get the code and the installation steps as well, it’s promising!
Thank you very much!
Hello,
I too would love to get a copy of the code and installation steps please.
Thank you very much!
Hi Dave,
This is truely a saviour Post to the community. Kindly share the code. Need it badly.
Thanks in Advance,
Hi Pritesh,
i am in the same boat. i have similar requirements. i would appreciate if you can send me the code so that i can reuse it.
In my case, i have a document library based on my custom content type. on document upload i have to populate meta data for uploaded document and i have some hidden columns that i need to populate also behind the scene.
Can you please help me?
thanks in advance
Hi Dave,
This sounds like a nice feature. I’d really appreciate it, if I could get some code snippets, or more important, how to deploy it to sharepoint.
thanks in advance !!
Amazing and simple, as everyone else if is possible can you share with me the source code?
Thanks.
Hi Dave,
Is the source code still available? I’d appreciate if you could send me the code.
Thanks in advance.
Hi Dave,
Can you please share the code? Thanks.
Can I get a source code too?
Thanks
Hi, this is EXACTLY what I need, too 🙂
please dave, can you send me the code too? Thanks a lot 🙂
This is awesome and exactly what I need.
Please share code with me 🙂
This looks like a great option for us as well. Please send me the source code.
Thank you!
will this add multiple values of metadata to the documents during the upload, or only add just one?
Are you still sharing your masterpiece described here with others? I would greatly appreciate it if you shared it with me.