Add support for uploading files.

Change-Id: I87044263b589bf8156210c5d03c1cb3e4f4425df