[http] Change temp file dir for upload.

Using /tmp is not reliable. On some systems, /tmp will be
cleaned up periodically.