52 $values = $parameters[
'values'];
53 if ($parameters[
'allowedFileExtensions']) {
56 if ($parameters[
'disallowedFileExtensions']) {
60 if (is_array($values)) {
61 foreach ($values as $value) {
65 $parts = GeneralUtility::revExplode(
'_', $value, 2);
66 $fileReferenceUid = $parts[count($parts) - 1];
70 if ($this->
isAllowed($file->getExtension())) {
71 $cleanValues[] = $value;
74 $dataHandler->
deleteAction(
'sys_file_reference', $fileReferenceUid);
101 if ($this->allowedFileExtensions ===
null && $this->disallowedFileExtensions ===
null) {
108 }
catch (\InvalidArgumentException $e) {
111 if (!isset($fileInfo[
'extension'])) {
112 trigger_error(
'Guessing FAL file extensions will be removed in TYPO3 v10.0. The FAL (' . get_class($driver) .
') driver method getFileInfoByIdentifier() should return the file extension.', E_USER_DEPRECATED);
115 if (!$this->
isAllowed($fileInfo[
'extension'])) {
130 $fileExt = strtolower($fileExt);
133 if ($this->allowedFileExtensions !==
null && !empty($this->allowedFileExtensions) && !in_array($fileExt, $this->allowedFileExtensions)) {
137 if ($this->disallowedFileExtensions !==
null && !empty($this->disallowedFileExtensions) && in_array($fileExt, $this->disallowedFileExtensions)) {
174 if (is_array($inputArgument)) {
175 $returnValue = $inputArgument;
176 } elseif ((
string)$inputArgument !==
'') {
177 $returnValue = GeneralUtility::trimExplode(
',', $inputArgument);
180 if (is_array($returnValue)) {
181 $returnValue = array_map(
'strtolower', $returnValue);