Validation and upload

You can find answer in this page