phpSPO icon indicating copy to clipboard operation
phpSPO copied to clipboard

Sharepoint upload session returns null on getFile if file is smaller than chunksize

Open meltir opened this issue 4 years ago • 0 comments

If the size of the file uploaded to sharepoint using src/SharePoint/UploadSession.php is below the chunk size, $this->targetFile is not populated, and the getFile method returns null.

(feof is detected and the second loop checking if $fileSize == $bytesRead is never executed)

meltir avatar Sep 15 '21 12:09 meltir