diff --git a/src/Tus/Client.php b/src/Tus/Client.php index 50e7cce4..29807037 100644 --- a/src/Tus/Client.php +++ b/src/Tus/Client.php @@ -2,6 +2,7 @@ namespace TusPhp\Tus; +use Ramsey\Uuid\Uuid; use TusPhp\File; use Carbon\Carbon; use TusPhp\Config; @@ -524,7 +525,7 @@ protected function partial(bool $state = true) list($key, /* $partialKey */) = explode(self::PARTIAL_UPLOAD_NAME_SEPARATOR, $key); } - $this->key = $key . uniqid(self::PARTIAL_UPLOAD_NAME_SEPARATOR); + $this->key = $key . self::PARTIAL_UPLOAD_NAME_SEPARATOR . Uuid::uuid4()->toString(); } /**