Loading module/Fichier/src/Fichier/Command/Pdf/AjoutPdcShellCommandGs.php +1 −1 Original line number Diff line number Diff line Loading @@ -57,7 +57,7 @@ class AjoutPdcShellCommandGs extends PdfMergeShellCommandGs public function generateCommandLineAvecSuppression1erePageDuManuscrit() { $tmpFilePath = tempnam(sys_get_temp_dir(), $this->getName() . '_trunc_') . '.pdf'; $tmpFilePath = sys_get_temp_dir() . '/' . uniqid($this->getName() . '_trunc_') . '.pdf'; $command = $this->executable . ' ' . $this->noCompressionOption; $command1 = $command . ' -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=' . $tmpFilePath . ' -dFirstPage=2 -dBATCH ' . $this->manuscritInputFilePath; Loading module/Fichier/src/Fichier/FileUtils.php +1 −1 Original line number Diff line number Diff line Loading @@ -117,7 +117,7 @@ class FileUtils static public function convertLogoFileToPNG(string $uploadedFilePath): string { $logoFilepath = tempnam(sys_get_temp_dir(), '') . '.png'; $logoFilepath = sys_get_temp_dir() . '/' . uniqid() . '.png'; $command = new ConvertShellCommand(); $command->setOutputFilePath($logoFilepath); Loading module/Fichier/src/Fichier/Service/Fichier/FichierStorageService.php +6 −2 Original line number Diff line number Diff line Loading @@ -69,7 +69,7 @@ class FichierStorageService $this->storageAdapter->saveToFilesystem( $dirPath, $fileName, $tmpFilePath = tempnam(sys_get_temp_dir(), '') $tmpFilePath = sys_get_temp_dir() . '/' . uniqid() ); return $tmpFilePath; Loading Loading @@ -222,7 +222,11 @@ class FichierStorageService $dirPath = $this->computeDirectoryPathForLogoStructure($structure); $fileName = $structure->getCheminLogo(); $this->storageAdapter->saveToFilesystem($dirPath, $fileName, $tmpFilePath = tempnam(sys_get_temp_dir(), '')); $this->storageAdapter->saveToFilesystem( $dirPath, $fileName, $tmpFilePath = sys_get_temp_dir() . '/' . uniqid() ); return $tmpFilePath; } Loading Loading
module/Fichier/src/Fichier/Command/Pdf/AjoutPdcShellCommandGs.php +1 −1 Original line number Diff line number Diff line Loading @@ -57,7 +57,7 @@ class AjoutPdcShellCommandGs extends PdfMergeShellCommandGs public function generateCommandLineAvecSuppression1erePageDuManuscrit() { $tmpFilePath = tempnam(sys_get_temp_dir(), $this->getName() . '_trunc_') . '.pdf'; $tmpFilePath = sys_get_temp_dir() . '/' . uniqid($this->getName() . '_trunc_') . '.pdf'; $command = $this->executable . ' ' . $this->noCompressionOption; $command1 = $command . ' -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=' . $tmpFilePath . ' -dFirstPage=2 -dBATCH ' . $this->manuscritInputFilePath; Loading
module/Fichier/src/Fichier/FileUtils.php +1 −1 Original line number Diff line number Diff line Loading @@ -117,7 +117,7 @@ class FileUtils static public function convertLogoFileToPNG(string $uploadedFilePath): string { $logoFilepath = tempnam(sys_get_temp_dir(), '') . '.png'; $logoFilepath = sys_get_temp_dir() . '/' . uniqid() . '.png'; $command = new ConvertShellCommand(); $command->setOutputFilePath($logoFilepath); Loading
module/Fichier/src/Fichier/Service/Fichier/FichierStorageService.php +6 −2 Original line number Diff line number Diff line Loading @@ -69,7 +69,7 @@ class FichierStorageService $this->storageAdapter->saveToFilesystem( $dirPath, $fileName, $tmpFilePath = tempnam(sys_get_temp_dir(), '') $tmpFilePath = sys_get_temp_dir() . '/' . uniqid() ); return $tmpFilePath; Loading Loading @@ -222,7 +222,11 @@ class FichierStorageService $dirPath = $this->computeDirectoryPathForLogoStructure($structure); $fileName = $structure->getCheminLogo(); $this->storageAdapter->saveToFilesystem($dirPath, $fileName, $tmpFilePath = tempnam(sys_get_temp_dir(), '')); $this->storageAdapter->saveToFilesystem( $dirPath, $fileName, $tmpFilePath = sys_get_temp_dir() . '/' . uniqid() ); return $tmpFilePath; } Loading