Have tried Googling but no-one seems to have published an answer.
When saving a spreadsheet generated using PHPSpreadsheet then, if no path is included in the save call, then the spreadsheet is saved to wherever the PHP file is located - ok on development PC, but not so good when system goes live and is called from webserver. On a user machine I have no idea about folder structures, and indeed some might be on locked-down machines.
The obvious thing would to call the Save/Open dialog or send the output file direct to the users default download folder, but can’t see how to achieve either of these options.
Has anyone an idea?