VintaSoft Imaging .NET SDK v8.5
uploadStorageImages Method
Vintasoft.Imaging Namespace > VintasoftFileAPI type : uploadStorageImages Method
Images from a data storage.
A name of file in which uploaded images will be saved on server.
Function that will be executed if request is executed successfully.
Here is function prototype "function __success(data)".
The data parameter has the following properties:
Function that will be executed if request is failed.
Here is function prototype "function __error(data)".
The data parameter can be:
  1. An object with following properties:
    • errorMessage: Error message.
    • blocked: Indicates that the requested action is blocked by another request.
    if exception is catched inside web service.
  2. Otherwise, jqXHR object.
An instance, of WebServiceJS class, which will serve the request of this function.
Sends an asynchronous request to a server for uploading the images, from a data storage, to a server.
Syntax
var value; // Type: any

// Parameters
var images; // Type:  object
var fileName; // Type:  string
var successFunc; // Type:  object
var errorFunc; // Type:  object
var service; // Type:  object

value = Vintasoft.Imaging.VintasoftFileAPI.uploadStorageImages(images, fileName, successFunc, errorFunc, service);
function uploadStorageImages( 
   images : object,
   fileName : string,
   successFunc : object,
   errorFunc : object,
   service : object
) : any;

Parameters

images
Images from a data storage.
fileName
A name of file in which uploaded images will be saved on server.
successFunc
Function that will be executed if request is executed successfully.
Here is function prototype "function __success(data)".
The data parameter has the following properties:
  • imageInfos: Array with information about images (file data, page index and file data type for each image).
errorFunc
Function that will be executed if request is failed.
Here is function prototype "function __error(data)".
The data parameter can be:
  1. An object with following properties:
    • errorMessage: Error message.
    • blocked: Indicates that the requested action is blocked by another request.
    if exception is catched inside web service.
  2. Otherwise, jqXHR object.
service
An instance, of WebServiceJS class, which will serve the request of this function.
Browser Compatibility
9
5
11
5
See Also

Reference

VintasoftFileAPI type