framework icon indicating copy to clipboard operation
framework copied to clipboard

Storage Facade doesn't catch `CorruptedPathDetected` Exception when `throw` is disabled

Open jacobmllr95 opened this issue 3 years ago • 0 comments

  • 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:

  1. Build a file upload form using the Storage Facade.
  2. Try to upload the following sample file.
  3. Get a CorruptedPathDetected exception.

Sample file: K„lteanlage Prfbefund.pdf

jacobmllr95 avatar Sep 21 '22 21:09 jacobmllr95