You are here

constant FileUploadResource::REQUEST_HEADER_FILENAME_REGEX in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/file/src/Plugin/rest/resource/FileUploadResource.php \Drupal\file\Plugin\rest\resource\FileUploadResource::REQUEST_HEADER_FILENAME_REGEX
  2. 9 core/modules/file/src/Plugin/rest/resource/FileUploadResource.php \Drupal\file\Plugin\rest\resource\FileUploadResource::REQUEST_HEADER_FILENAME_REGEX

The regex used to extract the filename from the content disposition header.

File

core/modules/file/src/Plugin/rest/resource/FileUploadResource.php, line 67

Class

FileUploadResource
File upload resource.

Namespace

Drupal\file\Plugin\rest\resource

Code

const REQUEST_HEADER_FILENAME_REGEX = '@\\bfilename(?<star>\\*?)=\\"(?<filename>.+)\\"@';