且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

通过Web API ASP.NET Framework Web应用程序C#将图像/文件上传到Blob Azure

更新时间:2022-11-05 13:08:06

不确定为什么它不起作用,代码看起来正确.在许多情况下都会发生此错误.

Not sure why it does not work, the code looks correct. The error occurs in many cases.

  1. 如果您请求的容器名称无效,则将导致您收到(400)错误的请求.它有一些关于容器名称的限制,因此请检查您的字符串.

  1. If you request a container with an invalid name, it will result in (400) Bad Request, which you are getting. It has some limitations about the container name, so check your string.

如果Blob存储模拟器无法启动,它将返回400 Bad Request.参见此处.

If the blob storage emulator would not start, it will return 400 Bad Request. see here.

如果存储库和存储仿真器的版本不同步,它还将返回400错误请求,请参见这里.

If the versions of the storage libraries and storage emulator are out of sync, it will also return 400 Bad Request, see here.

最后,您的存储位置可能很重要,请参见此处.

Last, the location of your storage may matter, see here.