framework
framework copied to clipboard
Storage Facade doesn't catch `CorruptedPathDetected` Exception when `throw` is disabled
- Laravel Version: 9.31.0
- PHP Version: 8.1.10
- Database Driver & Version: MySQL 5.7.38
Description:
When trying to store a file with a corrupted filename with the Storage Facades putFile or putFileAs methods, a CorruptedPathDetected exception is thrown even though throw is disabled in the filesystem disk's configuration.
Steps To Reproduce:
- Build a file upload form using the
StorageFacade. - Try to upload the following sample file.
- Get a
CorruptedPathDetectedexception.
Sample file: Klteanlage Prfbefund.pdf