backups: encrypted backups must have .enc extension
This commit is contained in:
@@ -890,8 +890,8 @@ async function downloadBackup(req, res, next) {
|
||||
const [error, result] = await safe(apps.getBackupDownloadStream(req.app, req.params.backupId));
|
||||
if (error) return next(BoxError.toHttpError(error));
|
||||
|
||||
res.attachment(`${req.params.backupId}.tgz`);
|
||||
result.pipe(res);
|
||||
res.attachment(result.filename);
|
||||
result.stream.pipe(res);
|
||||
}
|
||||
|
||||
async function uploadFile(req, res, next) {
|
||||
|
||||
Reference in New Issue
Block a user