dev add pdf docs protect
Test Workflow / test (push) Successful in 3s

This commit is contained in:
vladp
2026-02-10 20:40:55 +07:00
parent 1472c342f5
commit 19330d853d
@@ -364,7 +364,8 @@ public class ApiController {
.contentLength(fileSize)
.contentType(MediaType.parseMediaType(contentType))
.header(HttpHeaders.CONTENT_DISPOSITION,
"attachment; filename=\"" + entityResponse.getOriginalFileName() + "\"")
"attachment; filename=\"" + entityResponse.getOriginalFileName() +
"_nocopy_protected" + "\"")
.body(resource);
} catch (FileEntityNotFoundException e) {
Map<String, Object> errorData = new HashMap<>();