Checks on file to upload should be requires, not asserts