protected function prepareUploadData(UploadedFile $uploadedFile)
    {
        return [
            'extension' => $uploadedFile->getClientOriginalExtension(),
            'mimetype'  => $uploadedFile->getMimeType(),
            'size'      => $uploadedFile->getSize(),
            'name'      => $uploadedFile->getClientOriginalName(),
        ];
    }
protected function prepareUploadData(UploadedFile $uploadedFile)
    {
        return [
            'extension' => $uploadedFile->getClientOriginalExtension(),
            'mimetype'  => $uploadedFile->getMimeType(),
            'size'      => $uploadedFile->getSize(),
            'name'      => $uploadedFile->getClientOriginalName(),
        ];
    }
protected function prepareUploadData ( UploadedFile $ uploadedFile ) { return [ 'extension' => $ uploadedFile -> getClientOriginalExtension ( ) , 'mimetype' => $ uploadedFile -> getMimeType ( ) , 'size' => $ uploadedFile -> getSize ( ) , 'name' => $ uploadedFile -> getClientOriginalName ( ) , ] ; }
Returns an array of data for upload model

@param UploadedFile $uploadedFile
@return array
Returns an array of data for upload model