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