Inserts a new document into the given parent document folder.
null
. IDocument
instance containing metadata properties for the new document. This object can be obtained by calling CreateNewDocument
. Cannot be null
. null
.. Stream
from which the contents of the new document will be read; cannot be null
. en
for english. Specifying a null
language will set the language to that of the current user. True
to override the security set on the IDocument
object and use the same security as the parent folder instead. The newly created IDocument
instance.
documentProperties
parameter.
report.doc
and this name already exists it will be changed to report_1.doc
(or report_2.doc
if report_1.doc
already exists). The name of the returned IDocument
can be checked to see if it differs from the name requested in the document
parameter. Note: To use any document upload/download functionality, including this method, you must install WSE 2.0 (http://msdn.microsoft.com/webservices/building/wse/). If the document to be uploaded contains non-ASCII characters (particularly, european accented letters), please set the content type of the document to "text/xml;charset=iso-8859-1" using IDocument.ContentType
before calling this method. Exception Type | Condition |
---|---|
PermissionDeniedException | The user does not have permission to insert a document into the given folder. |
CollaborationException | The method call resulted in an error. |
SoapException | There was a communication problem during the execution of the remote method call. |
InvalidOperationException | The parent folder has not yet been inserted, has already been removed, or the new document is not new. |
IDocumentManager Interface | Plumtree.Remote.PRC.Collaboration.Document Namespace