check upload type