add check upload dir