upload files from dir useing globaly