Hello, I am trying to limit the size of a single file, not the complete request.
I have a website with five neat-upload-controls (single file, not multi file) and a progress bar. The idea is that all files togesther must not increase 20 MByte - which is easy and works good - but also each file should not be larger than 5 MByte. For this I cannot find a solution.
In the code behinde I do have the fileContent.length property, which I could use to abort the upload. But I am not sure how to do that.
Atually the best way would be, if I could just exclude the file which ist to big from the upload and save all other files. But it would also be fine if I can abort the whole upload process, as long as I can give a proper message to the user.