I Want to upload a file in document library using Client object model with ECMA script Any help will be appreciated

  • What browser(s) are you using/supporting? Good luck trying to do it with anything less than an HTML 5 compatible browser! – Mario Pereira Jul 31 '13 at 19:04
  • Why should that be an issue? The Client Object Model for SharePoint is quite capable even without fancy HTML 5 features and jQuery extensions – Robert Lindgren Jul 31 '13 at 19:07
  • I don't think the Ecmascript Client Object Model has a method to upload a file into the document library. Most suggestions I have seen is to use the Copy.asmx webservice with jquery, but then you run into issues with serializing the file. There are some jquery plugins and AJAX-based solutions, but I find them cumbersome to get working. HTML 5 browsers have FileReader class that greatly simplifies the process! social.msdn.microsoft.com/forums/windowsazure/fr-fr/… – Mario Pereira Jul 31 '13 at 19:17

My suggestion is to start by doing a Google search for "sharepoint upload file javascript"

| improve this answer | |
  • It is a bit ridiculous when prowl takes the time to write a question here, when the answer is a simple search away. Probably with a link back here aswell! :) – Robert Lindgren Jul 31 '13 at 19:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.