1
0
Fork 0
mirror of synced 2024-06-02 10:54:44 +12:00

fix abort

This commit is contained in:
Damodar Lohani 2022-01-16 13:32:03 +05:45
parent d04d9d7aba
commit 7e33188f4d

View file

@ -1474,7 +1474,10 @@ App::delete('/v1/storage/buckets/:bucketId/files/:fileId')
$deviceDeleted = false;
if($file->getAttribute('chunksTotal') !== $file->getAttribute('chunksUploaded')) {
$deviceDeleted = $deviceFiles->abort($file->getAttribute('path'));
$deviceDeleted = $deviceFiles->abort(
$file->getAttribute('path'),
($file->getAttribute('metadata', [])['uploadId'] ?? '')
);
} else {
$deviceDeleted = $deviceFiles->delete($file->getAttribute('path'));
}