From e1ffe87e8a50a6a8cf8204c6afd46f6df99083e6 Mon Sep 17 00:00:00 2001 From: shivank44 <52524465+shivank44@users.noreply.github.com> Date: Wed, 31 Aug 2022 13:00:45 +0530 Subject: [PATCH] Fix issue for file having large name (#125) --- src/Handler/ResumableJSUploadHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Handler/ResumableJSUploadHandler.php b/src/Handler/ResumableJSUploadHandler.php index 59f79f2..7a70ae9 100644 --- a/src/Handler/ResumableJSUploadHandler.php +++ b/src/Handler/ResumableJSUploadHandler.php @@ -43,7 +43,7 @@ public function __construct(Request $request, $file, $config) */ public function getChunkFileName() { - return $this->createChunkFileName($this->fileUuid, $this->getCurrentChunk()); + return $this->createChunkFileName(substr($this->fileUuid,0,40), $this->getCurrentChunk()); } /**