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\EventSubscriber

Code

protected const FALLBACK_FILENAME = 'unnamed';

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.