mirror of
https://github.com/filegator/filegator.git
synced 2025-08-12 02:14:02 +02:00
Fix: merging chunks after upload
This commit is contained in:
@@ -137,6 +137,23 @@ class UploadTest extends TestCase
|
||||
|
||||
$this->sendRequest('POST', '/upload', $data, $files);
|
||||
$this->assertOk();
|
||||
|
||||
$this->sendRequest('POST', '/getdir', [
|
||||
'dir' => '/',
|
||||
]);
|
||||
|
||||
$this->assertResponseJsonHas([
|
||||
'data' => [
|
||||
'files' => [
|
||||
0 => [
|
||||
'type' => 'file',
|
||||
'name' => 'sample.txt',
|
||||
'path' => '/sample.txt',
|
||||
'size' => 1572864,
|
||||
],
|
||||
],
|
||||
],
|
||||
]);
|
||||
}
|
||||
|
||||
public function testUploadFileBiggerThanAllowed()
|
||||
|
Reference in New Issue
Block a user