moved dupe check after filename format check in upload