last fix for upload type