Limit file size

I have a form with the option of uploading data. These should be limited to 10 files and a total of 20 MB. How can I limit the total file size and the individual files when uploading files?
And if I delete a file, I can no longer add a new one. Is this a known problem?

Replies are visible only to logged in members with an active subscription.