Added initial support for S3 upload directory