I want to rename image files uploaded to my website and give them a bit of description. I'm using ASP.NET, C# and of course Windows hosting. the file names will contain Unicode characters. how much is the filename size limit in these conditions?
Asked
Active
Viewed 1,976 times
1 Answers
1
Individual components of a filename (i.e. each subdirectory along the path, and the final filename) are limited to 255 characters, and the total path length is limited to approximately 32,000 characters.
However, the issue will be more due to the browser as the full URL is limited to a number of characters and it's different per browser. Some posts here suggest you should limited to 2000 characters.
To read more about browser limits, I suggest you read here but please note for future proofing, the comments I've made here and posts I've cited will become outdated. You need to do your own research at the time of reading this!