rewrite file_path as file_url, and handle generating S3 signed expiring url