VintaSoft Imaging .NET SDK v8.6
Vintasoft.Imaging Namespace / VintasoftFileAPI type / copyFile Method
URL (on server) of file that should be downloaded.
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 (string): Error message.
    • blocked (boolean): 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.
In This Topic
    copyFile Method
    In This Topic
    Sends an asynchronous request to a server for copying specified file on server to the working directory of current user.
    Syntax
    var value; // Type: any
    
    // Parameters
    var fileUrl; // Type:  string
    var successFunc; // Type:  object
    var errorFunc; // Type:  object
    var service; // Type:  object
    
    value = Vintasoft.Imaging.VintasoftFileAPI.copyFile(fileUrl, successFunc, errorFunc, service);
    function copyFile( 
       fileUrl : string,
       successFunc : object,
       errorFunc : object,
       service : object
    ) : any;

    Parameters

    fileUrl
    URL (on server) of file that should be downloaded.
    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:
    • fileId (string): Image file identifier.
    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 (string): Error message.
      • blocked (boolean): 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
    15
    5
    See Also