Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 572 Bytes

result.saveas.md

File metadata and controls

23 lines (17 loc) · 572 Bytes

Result.saveas

The saveas function renames the file when it is downloaded.

Sample

var result = new Result();
result.attach("test.xls")
    .saveas("hello.xls");

API

Calling Returning
result. saveas ( filename ) Result
result. saveas ( filename, password ) Result
Parameters Type Description
filename String The filename for saving.
password String If a folder or multiple files are attached, you can save them all to a named, password-protected zip archive.