Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do we have list of unsupported characters for azure blob file names?

I'm uploading some files with some different special characters to the blob. It is not getting uploaded. I found that there is some restriction on naming the files of the azure. So I need the list of unsupported unicode characters for blob file names or way to find whether a character is supported in azure blob file name or not.

I had referred below doc on this. They didnt provide any particular list or way to find it. https://learn.microsoft.com/en-us/rest/api/storageservices/naming-and-referencing-shares--directories--files--and-metadata

I need the exact validation of file name validation happening on upload file blade on azure blob

like image 482
Dinesh Kumar Avatar asked Sep 07 '25 07:09

Dinesh Kumar


1 Answers

I don't think the Microsoft Docs are very precisely specified.

A blob name must conforming to the following naming rules:

  • A blob name can contain any combination of characters.
  • A blob name must be at least one character long and cannot be more than 1,024 characters long, for blobs in Azure Storage.
  • Blob names are case-sensitive.
  • Reserved URL characters must be properly escaped.
  • The number of path segments comprising the blob name cannot exceed 254. A path segment is the string between consecutive delimiter characters (e.g., the forward slash '/') that corresponds to the name of a virtual directory.

In my tests I found you cannot have these characters in an Azure Blob name

  • Control characters 0x00-0x1F
  • Delete 0x7F
  • Backslash '\' - Azure converts this to forward slash '/'
  • Names ending in full stop '.'

I used the Azure Blob go SDK for doing these tests, so it is possible some of these limitations are due to that.

like image 169
Nick Craig-Wood Avatar answered Sep 10 '25 01:09

Nick Craig-Wood