I created a web app for some of our staff who use this to fill out some details, select an image (either from the library on their device or direct from the camera) and then send it to the server. On occasion the staff report that they get a httpException Maximum length exceeded.
While I know of ways around this such as increasing the allowed size in the web.config I figured I would rather the uploaded file wasn't so big in the first place as there is no requirement for it to be so.
So the scenario would be that the staff member selects the photo (existing or from the camera) and a client side function would reduce the file size (bytes) and then uploads it.
I have been looking at this option
But wondered if there was anything built in to .NET? The web app is currently .NET 4.7.2
If there is not then how would I adapt the example code to work on a .NET web form? The site talks about script frameworks such as angular.