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);
}