From application page - upload multiple documents to library programmatically - then get their IDs?
-
2012년 4월 3일 화요일 오후 9:07
Hi there,
SharePoint 2010 - Visual Studio 2010 - Application page:
- I need to present users with an application page where they can browse and select multiple files and then upload them at once.
- After the upload, the users should see the integer IDs of the files they just uploaded.Your help is appreciated. Thanks folks
모든 응답
-
2012년 4월 3일 화요일 오후 10:48
Hi,
You can call Add method which takes in the following parameters. I dont have acces to environment, so the following snippet will have to be corrected if needed.
SPFile myFile = myFilesCollection.Add(string urlOfFile, Stream file, Hashtable properties, bool overwrite);
To get the IDs, do myFile.Item.ID;
- 답변으로 표시됨 Qiao WeiMicrosoft Contingent Staff, Moderator 2012년 4월 13일 금요일 오전 11:54
- 답변으로 표시 취소됨 ran009 2012년 4월 13일 금요일 오후 3:17
-
2012년 4월 14일 토요일 오후 11:52
Thanks Sangeetha,
Do you know how to show the control to upload multiple files please?
Thanks :-)

