Added upload directory option to s3