Re: programmatically upload to document library
- From: Per Jakobsen <PjBlackKnight@xxxxxxxxx>
- Date: Wed, 02 Jul 2008 11:56:46 +0200
Hi Chris
If you want to perform the upload from another machine than the server you have to use the Web Services or RPC
The following blog entry gives you all the code needed:
http://geek.hubkey.com/2007/10/upload-file-to-sharepoint-document.html
Regarding the limited access then having either seperate document libraries or folders with the right permissions is the
easiest way.
Otherwise you have to set item level permission on each document either in you upload program or an event handler
On Mon, 2 Jun 2008 10:40:48 -0700 (PDT), Chris Pax <christopher.pax@xxxxxxxxx> wrote:
--
I Have a question simular to this one:
http://groups.google.com/group/microsoft.public.sharepoint.portalserver.development/browse_thread/thread/70368c298431f902/bf259edab2ee962d?lnk=gst&q=document+library
only that none of the example work there for me.
I want to make a function that programmatically uploads
documents, .doc
files, to a document library.
something like this:
upload_document("document.library.name/filepath",
"file/location/of/document.doc");
can this be done through the SP services, or SP API?
is there a good example for this action?
second question:
I would also like to attach a type to these files. some are finance,
or
spending. if i tag the file with finance, i want everybody who is in
the
'finance' group i made on SP to be able to see it.
how can this be done?
I think i could make seprate document collections and upload the
diffrent
documents to them, and just set permission to the document
collection.
but, is there a easyer way.
note, plese give complete code to, like how to connect. i am able to
connect with share point using webservices, but im haveing trouble
connecting using the API. Im a newbie at this is all im saying.
BR
Per Jakobsen
Blog: http://www.theblackknightsings.com
.
- Prev by Date: Windows Workflow ReplicatorActivity within WhileActivity
- Next by Date: Re: Opening an XML file hosted on a SharePoint Server
- Previous by thread: Windows Workflow ReplicatorActivity within WhileActivity
- Next by thread: Re: Accessing Lists
- Index(es):
Relevant Pages
|