Browse Source

clearstatecache for upload files

#546
walkor 5 years ago
parent
commit
acc3b6bbe3
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Protocols/Http/Request.php

+ 2 - 1
Protocols/Http/Request.php

@@ -607,6 +607,7 @@ class Request
     public function __destruct()
     {
         if (isset($this->_data['files'])) {
+            \clearstatecache();
             foreach ($this->_data['files'] as $item) {
                 if (\is_file($item['tmp_name'])) {
                     \unlink($item['tmp_name']);
@@ -614,4 +615,4 @@ class Request
             }
         }
     }
-}
+}