Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 930 Bytes

result.attach.md

File metadata and controls

31 lines (24 loc) · 930 Bytes

Result.attach

The attach function is established to download a file or a folder.

Sample

var result1 = (new Result())
.attach("test1.xls")
.attach("test2.xls");
var result2 = (new Result())
.attach("temp/test1.xls","temp")
.attach("temp/test2.xls","temp");

API

CallingReturning
Result . attach ( path )Result
Result . attach ( path, zipBasePath )Result
Result . attach ( path, zipBasePath, isAbs )Result
ParametersTypeDescription
pathStringFile or folder path.
zipBasePathStringThe root path of the zip for downloading.
isAbsbooleanThe path is absolute path or a relative path to the storage.