Update file upload.

HeigthxWidth validation, write file to disk only after validation