1
0
Fork 0
mirror of synced 2024-06-30 12:10:51 +12:00

Fix chunked upload file ID validation for first chunk

This commit is contained in:
Jake Barnby 2024-01-09 15:38:56 +13:00
parent 7795301772
commit b3819186cb
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C

View file

@ -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);
}