Skip to content

Commit 41d7d61

Browse files
committed
Clear the realpath and stat cache only for the specified filename. Closes blueimp#1911.
1 parent 7a77673 commit 41d7d61

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
@@ -1,6 +1,6 @@
11
<?php
22
/*
3-
* jQuery File Upload Plugin PHP Class 5.19.1
3+
* jQuery File Upload Plugin PHP Class 5.19.2
44
* https://github.com/blueimp/jQuery-File-Upload
55
*
66
* Copyright 2010, Sebastian Tschan
@@ -202,7 +202,7 @@ protected function fix_integer_overflow($size) {
202202

203203
protected function get_file_size($file_path, $clear_stat_cache = false) {
204204
if ($clear_stat_cache) {
205-
clearstatcache();
205+
clearstatcache(true, $file_path);
206206
}
207207
return $this->fix_integer_overflow(filesize($file_path));
208208

0 commit comments

Comments
 (0)