We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e48333f commit eed81b4Copy full SHA for eed81b4
Src/Notion.Client/Api/FileUploads/Send/FileUploadsClient.cs
@@ -20,6 +20,14 @@ public async Task<SendFileUploadResponse> SendAsync(
20
throw new ArgumentNullException(nameof(sendFileUploadRequest.FileUploadId));
21
}
22
23
+ if (sendFileUploadRequest.PartNumber != null)
24
+ {
25
+ if (!int.TryParse(sendFileUploadRequest.PartNumber, out int partNumberValue) || partNumberValue < 1 || partNumberValue > 1000)
26
27
+ throw new ArgumentOutOfRangeException(nameof(sendFileUploadRequest.PartNumber), "PartNumber must be between 1 and 1000.");
28
+ }
29
30
+
31
var path = ApiEndpoints.FileUploadsApiUrls.Send(sendFileUploadRequest.FileUploadId);
32
33
return await _restClient.PostAsync<SendFileUploadResponse>(
0 commit comments