UploadedFilesHelper
abstract class UploadedFilesHelper (View source)
Helper to re-organize uploaded file data for requests.
Methods
static array
upcastUploadedFiles(array $uploadedFiles, array $arguments, array $currentPath = [])
No description
static FlowUploadedFile
upcastUploadedFile(UploadedFileInterface $uploadedFile, string|array $originallySubmittedResource = null, string $collectionName = null)
No description
static array
untangleFilesArray(array $convolutedFiles)
Transforms the convoluted _FILES superglobal into a manageable form.
static array
calculateFieldPathsAsArray(array $structure, string $firstLevelFieldName = null)
Returns an array of all possible "field paths" for the given array.
Details
static array
upcastUploadedFiles(array $uploadedFiles, array $arguments, array $currentPath = [])
No description
static protected FlowUploadedFile
upcastUploadedFile(UploadedFileInterface $uploadedFile, string|array $originallySubmittedResource = null, string $collectionName = null)
No description
static array
untangleFilesArray(array $convolutedFiles)
Transforms the convoluted _FILES superglobal into a manageable form.
static protected array
calculateFieldPathsAsArray(array $structure, string $firstLevelFieldName = null)
Returns an array of all possible "field paths" for the given array.