SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
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!… – Mario Pereira Jul 31 '13 at 19:17

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

share|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 posting your answer, you agree to the privacy policy and terms of service.

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