Skip to content

Commit 334f70d

Browse files
committed
Don't throw an error if flushing the output buffer fails. Closes blueimp#3201
1 parent 33d816f commit 334f70d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/php/UploadHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1078,8 +1078,8 @@ protected function readfile($file_path) {
10781078
$handle = fopen($file_path, 'rb');
10791079
while (!feof($handle)) {
10801080
echo fread($handle, $chunk_size);
1081-
ob_flush();
1082-
flush();
1081+
@ob_flush();
1082+
@flush();
10831083
}
10841084
fclose($handle);
10851085
return $file_size;

0 commit comments

Comments
 (0)