Function to download files from AWS S3.