ContentDispositionFilenameParser::REQUEST_HEADER_FILENAME_REGEX

Same name in other branches
  1. 10 core/modules/file/src/Upload/ContentDispositionFilenameParser.php \Drupal\file\Upload\ContentDispositionFilenameParser::REQUEST_HEADER_FILENAME_REGEX

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

File

core/modules/file/src/Upload/ContentDispositionFilenameParser.php, line 16

Class

ContentDispositionFilenameParser
Parses the content-disposition header to extract the client filename.

Namespace

Drupal\file\Upload

Code

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

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