@Chandru Sati Welcome to Microsoft Q&A Forum, Thank you for posting your query here!
What's the authorization mechanism that clients use? Attribute-based access control (ABAC) could be used to restrict uploads to .txt files: https://learn.microsoft.com/en-us/azure/storage/blobs/storage-auth-abac. However, content length is not a supported attribute for ABAC conditions.
Please let us know if you have any further queries. I’m happy to assist you further.
Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.