simplexlsxgen icon indicating copy to clipboard operation
simplexlsxgen copied to clipboard

How to save in to a specific folder the xlsx file generated?

Open DBDB01 opened this issue 3 years ago • 1 comments

I have this code: $xlsx = Shuchkin\SimpleXLSXGen::fromArray( $fields ); $xlsx->saveAs('request.xlsx');

How can I save the file in to a specific path?

DBDB01 avatar Aug 03 '22 12:08 DBDB01

hmm if u want bowser dialog use $xlsx->downloadAs('request.xlsx'); exit();

if u want save xlsx in server specified path use $xlsx->saveAs('/backup/request.xlsx');

shuchkin avatar Aug 03 '22 14:08 shuchkin