Upload bug fixed temp directory didn't have permissions