95 $zipEntry =
new static;
96 $zipEntry->name = $fileArray[
'ORIGINAL_NAME'];
97 $zipEntry->fileId = $fileArray[
'ID'];
98 $zipEntry->size = $fileArray[
'FILE_SIZE'];
101 $filename = $fileArray[
'SRC'];
103 if (isset($fileArray[
'HANDLER_ID']) && !empty($fileArray[
'HANDLER_ID']))
112 $filename = preg_replace(
'~^(http[s]?)(\://)~i',
'\\1.' , $filename);
113 $cloudUploadPath = Option::get(
116 '/upload/bx_cloud_upload/'
118 $zipEntry->path = $cloudUploadPath . $filename;
119 unset($cloudUploadPath);
124 Encoding::convertEncoding($filename, LANG_CHARSET,
'UTF-8')