File upload with Next.js 14 app router server action + S3, Cloudfront please refer to the medium article for more: part 1, setting up AWS and cloudfront part 2, next.js code