Refactoring post and error catching
Restrict total upload size