mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 16:22:14 +00:00
chunk upload fix
This commit is contained in:
@@ -36,9 +36,6 @@ class UploadFileAction
|
||||
|
||||
$chunkName = $file->getClientOriginalName();
|
||||
|
||||
// File name
|
||||
$fileName = Str::uuid() . '.' . $file->extension();
|
||||
|
||||
// File Path
|
||||
$filePath = Storage::disk('local')->path('chunks/' . $chunkName);
|
||||
|
||||
@@ -60,6 +57,9 @@ class UploadFileAction
|
||||
if ($request->boolean('is_last')) {
|
||||
$disk_local = Storage::disk('local');
|
||||
|
||||
// File name
|
||||
$fileName = Str::uuid() . '.' . $request->input('extension');
|
||||
|
||||
// Get user data
|
||||
$user = $userId ? User::find($userId) : Auth::user();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user