mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-21 15:09:10 +00:00
pass options to project download to allow folders beginning with a dot
This commit is contained in:
@@ -109,7 +109,7 @@ export async function projectDownload(req: Request, res: Response) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
res.download(pathToFile, filename, (error) => {
|
res.download(pathToFile, filename, { dotfiles: 'allow' }, (error) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
const message = getErrorMessage(error);
|
const message = getErrorMessage(error);
|
||||||
res.status(500).send({ message });
|
res.status(500).send({ message });
|
||||||
|
|||||||
Reference in New Issue
Block a user