hw_InsertDocument

hw_InsertDocument -- upload any document

Description

int hw_putdocument(int connection, int parent_id, hw_document document);

Uploads a document into the collection with parent_id. The document has to be created before with hw_NewDocument(). Make sure that the object record of the new document contains at least the attributes: Type, DocumentType, Title and Name. Possibly you also want to set the MimeType.

See also hw_PipeDocument().