added s3 upload function to client main file