title: How to securely upload images to amazon S3 from a Next JS application?
body: <p>Im building a NextJS application and I need authorised users to be able to upload images to Amazon S3 bucket, for use on posts.</p>
  <p>Whats the best way to go about it? I've had a look around, but can only find tutorials for uploading via express, or using a react-s3 package that runs on the front end, but I'm wary about storing sensitive data for the amazon s3 in the front end code.</p>
  <p>Can I write a lamda function in an api route on next and send from there? Or is there a secure way to upload from the font end.  I have very little experience with BE so not much experience with express etc... but any help would be much appreciated.</p>