Use tmp dir for upload