feat: dummy replacement pdf upload for environments other than prod
This commit is contained in:
@@ -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