Cannot upload to azure Blob Storage: The remote server returned an error: (400) Bad Request

前端 未结 6 2234
星月不相逢
星月不相逢 2021-02-19 16:48

I\'m trying to create a utility to download file from the internet and upload it again to Azure blob storage. Blob containers already created well; But for some reason i\'m get

6条回答
  •  借酒劲吻你
    2021-02-19 17:15

    If you create a container with an invalid name, it will result in (400) Bad Request. There are some convention for creating container name as below:

    1. Container names must start with a letter or number, and can contain only letters, numbers, and the dash (-) character.
    2. Every dash (-) character must be immediately preceded and followed by a letter or number; consecutive dashes are not permitted in container names.
    3. All letters in a container name must be lowercase.
    4. Container names must be from 3 through 63 characters long.

    Source: https://docs.microsoft.com/en-us/rest/api/storageservices/naming-and-referencing-containers--blobs--and-metadata

提交回复
热议问题