- Issue created by @keopx
- @keopx opened merge request.
When the file not exits cdn shows an exception error.
Symfony\Component\HttpFoundation\File\Exception\FileNotFoundException: The file "public://documents/012-0001.jpg" does not exist in Symfony\Component\HttpFoundation\File\File->__construct() (line 36 of /var/www/html/vendor/symfony/http-foundation/File/File.php).
Symfony\Component\HttpFoundation\BinaryFileResponse->setFile('public://documents/012-0001.jpg', NULL, , ) (Line: 52)
Symfony\Component\HttpFoundation\BinaryFileResponse->__construct('public://documents/012-0001.jpg', 200, Array, 1, NULL, , ) (Line: 80)
Drupal\cdn\CdnFarfutureController->download(Object, 'delNSoplsZbTBup2m8u0n1Q3hIR8S187DVeN3xqkEmo', 1726651659, 'public')
Create file, then remove file from files and request the url.
Validate if file exists, else show the common not found.
Active
4.1
Code