fixing custom Errors and fileUpload() interface