NestJs upload image to s3. NestJs course [pt. 9]
Vložit
- čas přidán 28. 07. 2024
- Learn how to upload files to nestJS API and then how to send them to AWS S3 service. The following video is the last one from the series, where we build CRUD API using nestJs framework. After watching this episode, you should have a solid understanding of the nestJs file interceptor. You should also know the basics of the AWS S3 service.
Starter code: github.com/piotrmol/nestjs-re...
Final code: github.com/piotrmol/nestjs-re...
00:00 Introduction
00:49 Code revision
01:26 Endpoint for uploading images
07:08 S3 Module
08:07 Creating a new S3 bucket
10:53 Using aws SDK to communicate with s3
🎓 Enhance your learning journey! Visit my second channel, for valuable tips & tricks on mastering academics: / @piotrteaches 👨🎓👩🎓 - Věda a technologie
Thank you so much Piotr. You have no idea how this video saved my life. I've tried to watch several videos before yours, and none of them was helpful. Thank you 🙏🙏
This is awesome! fast, steady, and accurate. Thumms up 👍
Love you Piotr! It saved my day
You are good teacher. 🎉
thank you
Make a video how to show files if the bucket is private.. If possible in Next js
Thanks ❤ from India
You can make no download video on aws with Nesths ?
This video is amazing than you !. For the S3 credentials, is it necessary to put them on when we run the project on the server? Or we can config the server with the aws cli to get the aws config file?
It depends. If you run your app inside the AWS cloud, you don't have to configure the credentials or set them in the S3 client. The credentials will be automatically read from the account you run the app on. On the other hand, if you deploy your app on an on-premise server, you'll need to set the credentials.
I'm getting "Error: Socket connection timeout" Every time Even I did same as video suggests
thanks, it great video. could you please extend it to upload the file to the ser and after move it to aws :) also it could be nice if you show in case the internet cut so it doesn't need to upload form the beginning it just could continue where it stopped.