diff --git a/.gitignore b/.gitignore index 5826402..38cdbd7 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ composer.phar composer.lock .DS_Store +.idea \ No newline at end of file diff --git a/composer.json b/composer.json index ce513fa..997cb6e 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,7 @@ { - "name": "jenky/laravel-plupload", + "name": "peynman/laravel-plupload", "description": "Plupload package for Laravel 5", + "version": "3.1", "keywords": [ "laravel", "plupload" diff --git a/src/File.php b/src/File.php index f0220ed..2f71a51 100644 --- a/src/File.php +++ b/src/File.php @@ -114,8 +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); - @unlink($filePath); + $file = new UploadedFile($filePath, $originalName, 'blob', UPLOAD_ERR_OK, true); return $closure($file); }