【发布时间】:2021-01-09 20:53:49
【问题描述】:
尝试上传大于 4MB 的文件会引发 RequestBodyTooLarge 异常并显示以下消息:
The request body is too large and exceeds the maximum permissible limit.
虽然此限制记录在 REST API 参考 (https://docs.microsoft.com/en-us/rest/api/storageservices/put-range) 中,但未记录 SDK Upload* 方法 (https://docs.microsoft.com/en-us/dotnet/api/azure.storage.files.shares.sharefileclient.uploadasync?view=azure-dotnet)。也没有解决此问题的示例。
那么如何上传大文件呢?
【问题讨论】:
标签: c# azure azure-files