cancel
Showing results for 
Search instead for 
Did you mean: 

Upload <binary-part-content>

Krishna_Eyyuni1
Champ in-the-making
Champ in-the-making

Is there a way where a whole document as a pdf or a txt can be uploaded without uploading the bytes to the staging area?

 

5 REPLIES 5

AdamShaneHyland
Employee
Employee

Hi @Krishna Eyyuni ,

 

It is not possible to upload using the REST API without staging the file.  The only time it would upload multiple parts is if the size of the file is large.  That is why you have to call /documents/upload endpoint to determine the number of parts based on the file size.

 

All of the steps are separate and can't be combined into a single call.  Meaning you must call the following ...

 

  • /document-types/{DocumentTypeId}/default-keywords to get the KeywordGuid
  • /documents/uploads to prepare the upload and get the upload id
  • /documents to upload the file and get the document handle

 

... which is reference in the following programmers guide ...

 

If you run into issues with the upload, the API Server will respond with an HTTP result.  The result can be references within the SDK for meaning based on the REST API endpoint you are calling.  If you are troubleshooting an issue, you could use Hyland Diagnostics (logging to file, the Diagnostics Console, or a separate third party aggregator) to review the error messages.  Specially, I would review the ApiServer profile looking at the Message, LogLevel and Exception columns.  For LogLevel you can review messages of the Error level which will include information in the Message column and likely the Exception column as well.

 

Best wishes.