diff --git a/Controller/ApiController.php b/Controller/ApiController.php index 09eb18f..f716823 100755 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -569,7 +569,7 @@ final class ApiController extends Controller ], ]; - $created = $this->createDbEntries($status, $request->header->account, $virtualPath, $request->getData('type') ?? ''); + $created = $this->createDbEntries($status, $request->header->account, $virtualPath, $request->getData('type', 'int')); $ids = []; foreach ($created as $file) { diff --git a/tests/Controller/Api/ApiControllerMediaTrait.php b/tests/Controller/Api/ApiControllerMediaTrait.php index 8320af5..2f4cf9a 100755 --- a/tests/Controller/Api/ApiControllerMediaTrait.php +++ b/tests/Controller/Api/ApiControllerMediaTrait.php @@ -172,7 +172,7 @@ trait ApiControllerMediaTrait { self::assertEquals( [], - $this->module->uploadFiles(['test'], ['test'], 1, '/test', '', '', '', '', 99) + $this->module->uploadFiles(['test'], ['test'], 1, '/test', '', null, '', '', 99) ); } diff --git a/tests/Controller/test/path/testFile1.txt b/tests/Controller/test/path/testFile1.txt deleted file mode 100644 index 8d04345..0000000 --- a/tests/Controller/test/path/testFile1.txt +++ /dev/null @@ -1 +0,0 @@ -Test Content \ No newline at end of file diff --git a/tests/Controller/test/path/testFile2.txt b/tests/Controller/test/path/testFile2.txt deleted file mode 100644 index 55afc44..0000000 --- a/tests/Controller/test/path/testFile2.txt +++ /dev/null @@ -1 +0,0 @@ -Media/Collection Test 2 \ No newline at end of file