Please consider registering

Log In Members

Lost password?
Advanced Search

— Forum Scope —

— Match —

— Forum Options —

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: 257
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: 102

Currently Online:
15 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Member Stats:

Guest Posters: 1010

Members: 16882

Moderators: 0

Admins: 1

Forum Stats:

Groups: 4

Forums: 12

Topics: 1294

Posts: 2449

Administrators: Learning SharePoint: 257