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– Mario Pereira2013-07-31 19:04:57 +00:00Commented Jul 31, 2013 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 extensionsRobert Lindgren– Robert Lindgren2013-07-31 19:07:19 +00:00Commented Jul 31, 2013 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– Mario Pereira2013-07-31 19:17:48 +00:00Commented Jul 31, 2013 at 19:17
Add a comment
|
1 Answer
My suggestion is to start by doing a Google search for "sharepoint upload file javascript"
-
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– Robert Lindgren2013-07-31 19:04:53 +00:00Commented Jul 31, 2013 at 19:04