Fix chunked upload file ID validation for first chunk
This commit is contained in:
parent
7795301772
commit
b3819186cb
|
@ -458,7 +458,7 @@ App::post('/v1/storage/buckets/:bucketId/files')
|
||||||
}
|
}
|
||||||
|
|
||||||
$idValidator = new UID();
|
$idValidator = new UID();
|
||||||
if (!$idValidator->isValid($request->getHeader('x-appwrite-id'))) {
|
if (!$idValidator->isValid($fileId)) {
|
||||||
throw new Exception(Exception::STORAGE_INVALID_APPWRITE_ID);
|
throw new Exception(Exception::STORAGE_INVALID_APPWRITE_ID);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue