Add S3 upload func & template