Skip to content

Commit

Permalink
default driver
Browse files Browse the repository at this point in the history
  • Loading branch information
recca0120 committed May 2, 2023
1 parent 6d7ee34 commit cd3dd0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/upload.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php

return [
'driver' => 'fileapi',
'chunks' => storage_path('app/chunks'),
'storage' => public_path('storage/temp'),
'domain' => null,
Expand Down
2 changes: 1 addition & 1 deletion src/UploadManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function __construct(Container $container, Request $request = null, Files

public function getDefaultDriver(): string
{
return 'fileapi';
return $this->getConfig()['driver'] ?? 'fileapi';
}

protected function createDropzoneDriver(): Receiver
Expand Down

0 comments on commit cd3dd0d

Please sign in to comment.