fixed method validation
allow a single file to be uploaded