@@ -342,6 +342,7 @@ private function validateDestination(string $destinationFolder): void
342
342
* @return void
343
343
*
344
344
* @deprecated 100.0.8
345
+ * @see Nothing
345
346
*/
346
347
protected function chmod ($ file )
347
348
{
@@ -383,8 +384,9 @@ protected function _moveFile($tmpPath, $destPath)
383
384
/**
384
385
* Get logger instance.
385
386
*
386
- * @deprecated
387
387
* @return LoggerInterface
388
+ * @deprecated
389
+ * @see Nothing
388
390
*/
389
391
private function getLogger (): LoggerInterface
390
392
{
@@ -673,7 +675,7 @@ private function _getMimeType()
673
675
* @param string|array $fileId
674
676
* @return void
675
677
* @throws \DomainException
676
- * @throws \InvalidArgumentException
678
+ * @throws \InvalidArgumentException|FileSystemException
677
679
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
678
680
*/
679
681
private function _setUploadFileId ($ fileId )
@@ -688,7 +690,7 @@ private function _setUploadFileId($fileId)
688
690
}
689
691
690
692
$ fileId = $ fileId !== null ? $ fileId : '' ;
691
- preg_match ("/^(.*?)\[(.*?)\] $/ " , $ fileId , $ file );
693
+ preg_match ("/^(.*?)(\[.+]) $/ " , $ fileId , $ file );
692
694
693
695
if (is_array ($ file ) && count ($ file ) > 0 && !empty ($ file [0 ]) && !empty ($ file [1 ])) {
694
696
array_shift ($ file );
@@ -698,7 +700,14 @@ private function _setUploadFileId($fileId)
698
700
$ tmpVar = [];
699
701
700
702
foreach ($ fileAttributes as $ attributeName => $ attributeValue ) {
701
- $ tmpVar [$ attributeName ] = $ attributeValue [$ file [1 ]];
703
+ $ keys = explode ('][ ' , trim ($ file [1 ], '[] ' ));
704
+ foreach ($ keys as $ key ) {
705
+ $ key = trim ($ key , '[] ' );
706
+ if (isset ($ attributeValue [$ key ])) {
707
+ $ attributeValue = $ attributeValue [$ key ];
708
+ }
709
+ }
710
+ $ tmpVar [$ attributeName ] = $ attributeValue ;
702
711
}
703
712
704
713
$ fileAttributes = $ tmpVar ;
@@ -831,6 +840,7 @@ public static function getNewFileName($destinationFile)
831
840
* @param string $fileName
832
841
* @return string
833
842
* @deprecated 101.0.4
843
+ * @see Nothing
834
844
*/
835
845
public static function getDispretionPath ($ fileName )
836
846
{
@@ -864,8 +874,9 @@ public static function getDispersionPath($fileName)
864
874
/**
865
875
* Get driver for file
866
876
*
867
- * @deprecated
868
877
* @return DriverInterface
878
+ * @deprecated
879
+ * @see Nothing
869
880
*/
870
881
private function getFileDriver (): DriverInterface
871
882
{
0 commit comments