public function getFileFromChunks(UploadedFile $uploadedFile)
    {
        $filename = time() . '-' . $uploadedFile->getClientOriginalName();
        $path = $this->tmpDir . DIRECTORY_SEPARATOR . $filename;

        if (FlowBasic::save($path, $this->tmpDir)) {
            return new UploadedFile($path, $uploadedFile->getClientOriginalName(), $uploadedFile->getClientMimeType());
        }

        return null;
    }
public function getFileFromChunks(UploadedFile $uploadedFile)
    {
        $filename = time() . '-' . $uploadedFile->getClientOriginalName();
        $path = $this->tmpDir . DIRECTORY_SEPARATOR . $filename;

        if (FlowBasic::save($path, $this->tmpDir)) {
            return new UploadedFile($path, $uploadedFile->getClientOriginalName(), $uploadedFile->getClientMimeType());
        }

        return null;
    }
public function getFileFromChunks ( UploadedFile $ uploadedFile ) { $ filename = time ( ) . '-' . $ uploadedFile -> getClientOriginalName ( ) ; $ path = $ this -> tmpDir . DIRECTORY_SEPARATOR . $ filename ; if ( FlowBasic :: save ( $ path , $ this -> tmpDir ) ) { return new UploadedFile ( $ path , $ uploadedFile -> getClientOriginalName ( ) , $ uploadedFile -> getClientMimeType ( ) ) ; } return null ; }
Check if all chunks of a file being uploaded have been received
If yes, return the name of the reassembled temporary file

@param UploadedFile $uploadedFile

@return UploadedFile|null
Check if all chunks of a file being uploaded have been received If yes return the name of the reassembled temporary file