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

get ID from header

This commit is contained in:
Damodar Lohani 2021-09-27 11:49:17 +05:45
parent a9cbbdf4e2
commit 311f07ddde

View file

@ -566,7 +566,7 @@ App::post('/v1/storage/buckets/:bucketId/files')
$start = $request->getContentRangeStart();
$end = $request->getContentRangeEnd();
$size = $request->getContentRangeSize();
$fileId = $request->getHeader('x-appwrite-id', $fileId);
if(is_null($start) || is_null($end) || is_null($size)) {
throw new Exception('Invalid content-range header', 400);
}