feat: dummy replacement pdf upload for environments other than prod
This commit is contained in:
1 parent
3b99757a08
commit
8988ae7620
12 files changed
+78
-16
No files matched your search
@@ -64,7 +64,7 @@ class BatchDownloadController extends AbstractController
|
||||
/** @var Upload $upload */
|
||||
$teamer = $upload->getOwner()->getTeamer();
|
||||
$filename = $namer->nameForTeamer($upload, $teamer);
|
||||
$filepath = $this->uploadHandler->getUploadFilepath($upload);
|
||||
$filepath = $this->uploadHandler->getResolvedUploadFilepath($upload);
|
||||
|
||||
try {
|
||||
$zip->addFileFromPath(fileName: $filename, path: $filepath);
|
||||
|
||||
@@ -29,7 +29,7 @@ class DownloadController extends AbstractController
|
||||
#[IsGranted('DOWNLOAD', subject: 'upload')]
|
||||
public function index(Upload $upload, Request $request): Response
|
||||
{
|
||||
$path = $this->uploadHandler->getUploadFilepath($upload);
|
||||
$path = $this->uploadHandler->getResolvedUploadFilepath($upload);
|
||||
|
||||
if (true === in_array($upload->getType(), [Upload::TYPE_INVOICE, Upload::TYPE_CONTRACT])) {
|
||||
$namer = new DownloadNamer();
|
||||
|
||||
Reference in new issue
Block a user