add file into folder sharepoint javascript client object model -Sharepoint 2010 | SharePoint 2010 Programming | SharePoint Forum

Please consider registering

Log In Members

Lost password?
Advanced Search

— Forum Scope —


— Match —


— Forum Options —


Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
add file into folder sharepoint javascript client object model -Sharepoint 2010
August 8, 2011
8:19 pm

Hi this is suvitha


since this site has lot of client object model examples i hope you can help me with this.

I want to add a file into a folder (like move or copy) using the javascript client object model of Sharepoint 2010


My users will select the file and will click on a custom button to move or copy the file into a secific folder.


how can they move\copy and upload a file into a folder?


Thank you.


August 10, 2011
12:59 am
Forum Posts: 255
Member Since:
May 30, 2010

you can copy a file using ecmascript client objetc model with

File.copyTo(_destinationlibUrl, true);


see example  – http://www.learningsharepoint……ry-part-2/

August 10, 2011
6:53 pm
Ravi Parshad

You cannot upload a document using ecmascript\javscript client object model in SharePoint 2010. You can only copy and\or move it into a library

Forum Timezone: UTC 0

Most Users Ever Online: 93

Currently Online:
29 Guest(s)

Currently Browsing this Page:
2 Guest(s)

Member Stats:

Guest Posters: 978

Members: 16882

Moderators: 0

Admins: 1

Forum Stats:

Groups: 3

Forums: 10

Topics: 1271

Posts: 2412

Administrators: Learning SharePoint (255)

Disclaimer: The contents of this site are provided “AS IS”. Information and views expressed including URL(s) and other Internet website references, may change without notice. You bear the risk of using it. SharePoint, MOSS, SharePoint 2010, SharePoint 2013 and Microsoft are trademarks of the Microsoft Corporation.Learning SharePoint only provides Tips,Tricks and Tutorials for using Microsoft SharePoint, Microsoft Office and related Softwares.
Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.