Quatrix JavaSctipt APIs
Space shortcuts
Quatrix JavaSctipt APIs QJA

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Initiates copy action of selected files.

Parameters 

 

Name TypeDescription

source 

array

array with selected files

target

string

specified folder id

overwrite

integer 

cb

functionspecified folder id



Example

Code Block
languagejs
this.filecmdCopy = function(source, target, overwrite, cb) {
  var data = {
    ids: source,
    target : target
  };

  if (typeof overwrite != 'undefined') {
    data.overwrite = overwrite;
  }

  return _request({
    method: 'POST',
    url: '/file/copy',
    data: data,
    callback: cb
  });
};

 

 

Quatrix JavaSctipt APIs QJA