fix file custom ID
This commit is contained in:
parent
9052d34b33
commit
b0bdcebd15
|
@ -666,6 +666,7 @@ App::post('/v1/storage/buckets/:bucketId/files')
|
||||||
|
|
||||||
if ($file->isEmpty()) {
|
if ($file->isEmpty()) {
|
||||||
$file = $dbForInternal->createDocument('bucket_' . $bucketId, new Document([
|
$file = $dbForInternal->createDocument('bucket_' . $bucketId, new Document([
|
||||||
|
'$id' => $fileId,
|
||||||
'$read' => $read,
|
'$read' => $read,
|
||||||
'$write' => $write,
|
'$write' => $write,
|
||||||
'dateCreated' => \time(),
|
'dateCreated' => \time(),
|
||||||
|
|
Loading…
Reference in a new issue