check existance upload directory

Added availability to check existance upload target directory