Looking at the Azure Media Service REST API I can't see any way to limit the upload size of a file:
https://learn.microsoft.com/en-us/azure/media-services/media-services-rest-upload-files
For example I want a user to directly upload a file to azure but limit it to 50mb. I don't want to proxy the request via my servers first because that seems like unnecessary bandwidth usage.
Is it possible to do this with Azure? If it isn't possible to do it directly on Azure what is the best way to indirectly restrict the file upload size?