Add upload, get metadata and download code