23 $isFromCloud = $this->isFromCloud($fileArray);
24 $path = $this->getPath($fileArray, $path);
25 $size = $this->getSize($fileArray);
26 $fileSrc = $this->getFileSrc($fileArray);
30 $fileSrc = $this->prepareCloudUrl($fileSrc);
31 $serverRelativeUrl = $this->getCloudUploadPath() . $fileSrc;
35 $serverRelativeUrl = $fileSrc;
38 $serverRelativeUrl = Uri::urnEncode($serverRelativeUrl,
'UTF-8');
40 return new FileEntry($path, $serverRelativeUrl, $size);