diff --git a/src/File.php b/src/File.php index f0220ed..a24c6b0 100644 --- a/src/File.php +++ b/src/File.php @@ -114,7 +114,7 @@ public function chunks($name, Closure $closure) $this->appendData($filePath, $file); if ($chunk == $chunks - 1) { - $file = new UploadedFile($filePath, $originalName, 'blob', count($filePath), UPLOAD_ERR_OK, true); + $file = new UploadedFile($filePath, $originalName, 'blob', UPLOAD_ERR_OK, true); @unlink($filePath); return $closure($file);