JildertMiedema\LaravelPlupload\Receiver::appendData PHP Method

appendData() private method

private appendData ( $filePathPartial, Symfony\Component\HttpFoundation\File\UploadedFile $file )
$file Symfony\Component\HttpFoundation\File\UploadedFile
    private function appendData($filePathPartial, UploadedFile $file)
    {
        if (!($out = @fopen($filePathPartial, 'ab'))) {
            throw new PluploadException('Failed to open output stream.', 102);
        }
        if (!($in = @fopen($file->getPathname(), 'rb'))) {
            throw new PluploadException('Failed to open input stream', 101);
        }
        while ($buff = fread($in, 4096)) {
            fwrite($out, $buff);
        }
        @fclose($out);
        @fclose($in);
    }