SecurityFileUploadEventSubscriber::FALLBACK_FILENAME
Same name and namespace in other branches
- 11.x core/modules/system/src/EventSubscriber/SecurityFileUploadEventSubscriber.php \Drupal\system\EventSubscriber\SecurityFileUploadEventSubscriber::FALLBACK_FILENAME
The filename used when sanitization leaves nothing behind.
Collisions with a real upload of this name are resolved by the usual suffixing in \Drupal\Core\File\FileSystem::createFilename(), producing unnamed_0, unnamed_1 and so on.
File
-
core/
modules/ system/ src/ EventSubscriber/ SecurityFileUploadEventSubscriber.php, line 49
Class
- SecurityFileUploadEventSubscriber
- The final subscriber to 'file.upload.sanitize.name'.
Namespace
Drupal\system\EventSubscriberCode
protected const FALLBACK_FILENAME = 'unnamed';
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.