Gets a uri on the cache to upload a document.
beginUpload = function(documentId)
static beginUpload(documentId: string): JQueryPromise<string>;
documentId
Optional: The ID to be used with the loaded document.
A Promise object that may resolve successfully to a string object containing the result URI that can be used with UploadDocument to upload a document.
When the value of documentId is null (the default), then the document factory will create a new unique ID using a GUID generator. If the value is not null, then it is assumed to be a user-defined ID and used as is. In either case, the value is set in the Document.DocumentId property of the newly created document.
User-defined IDs can be used when the system already have unique ID's associated with the documents to be viewer. The document factory will not check nor guarantee the uniqueness of these IDs.
BeginUpload returns a Promise for a uri that the application may use to upload a JavaScript File object with UploadDocument. BeginUpload, UploadDocument, and AbortUploadDocument are used together to get the same functionality as UploadFile, giving more control over the upload process.
Refer to Uploading Using LEADTOOLS Documents Library for more information on how to use this method.
Refer to UploadDocument for an example.
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET