Merge pull request #553 from oleynikd/attachments

Download attachments (documents) with original filenames
This commit is contained in:
Ahmed Bouhuolia
2024-08-02 02:42:52 +02:00
committed by GitHub
4 changed files with 26 additions and 9 deletions

View File

@@ -250,10 +250,12 @@ export class AttachmentsController extends BaseController {
res: Response,
next: NextFunction
): Promise<Response | void> {
const { tenantId } = req;
const { id: documentKey } = req.params;
try {
const presignedUrl = await this.attachmentsApplication.getPresignedUrl(
tenantId,
documentKey
);
return res.status(200).send({ presignedUrl });