How to upload files to AWS S3 with FastAPI ?

  Рет қаралды 8,702

Jr. Developer

Jr. Developer

Күн бұрын

#fastapi #python #aws #awss3 #s3 #webdevelopment #fileupload
Hello guys!!
This is a demo on how you can use FastAPI to upload files to your AWS S3 bucket.
I have covered very basic file checks and strongly recommend you to do some research on file-upload exploits to build a more secure API.
Happy coding!!

Пікірлер: 22
@jr.developer
@jr.developer Жыл бұрын
Source code: github.com/jrdeveloper124/file-transfer/blob/main/main.py
@gadamsettiakhil
@gadamsettiakhil Жыл бұрын
good explanation, interesting choice of subject
@yonyoon19
@yonyoon19 Жыл бұрын
/-> nfactorial incubator 2023
@JayendrasinhSOLANKI-s3w
@JayendrasinhSOLANKI-s3w 13 күн бұрын
which fonts you are using in vscode?
@jr.developer
@jr.developer 8 күн бұрын
The font that I used in this video is called Operator Mono but I recently started using IBM Plex Mono which looks beautiful too.
@apraveena
@apraveena Жыл бұрын
Thank you so much for the video, exactly what I needed.. How and where do we provide authentication details?
@jr.developer
@jr.developer Жыл бұрын
For JWT based authentication you can follow these nice tutorials in their documentation 1. Generate tokens - fastapi.tiangolo.com/tutorial/security/first-steps/ 2. Get user details - fastapi.tiangolo.com/tutorial/security/get-current-user/
@po6577
@po6577 Жыл бұрын
great video, this include all the basics i need, cheers mate
@jr.developer
@jr.developer Жыл бұрын
I'm glad that it helped you 👍🏻
@eluented
@eluented Жыл бұрын
thank you man amazing video keep it up! new sub
@RajveerSingh-vf7pr
@RajveerSingh-vf7pr 11 ай бұрын
Great Video, but video starts at 10:00
@sardarjagpreetsingh190
@sardarjagpreetsingh190 Жыл бұрын
Is this working in aws lambda function?
@jr.developer
@jr.developer Жыл бұрын
No. This wouldn't work on AWS lambda.
@buiduc2412
@buiduc2412 Жыл бұрын
can i ask what extension you use in vs code that can warn like "s3_upload" not defined like min 8:24
@jr.developer
@jr.developer Жыл бұрын
It's called Error Lens. VS Code extension id: usernamehw.errorlens
@ikeecode3410
@ikeecode3410 Жыл бұрын
Hello thank you for the video, can you explain how you set up your bucket first ?
@jr.developer
@jr.developer Жыл бұрын
Creating an S3 bucket is quite simple just head over to the s3 console: s3.console.aws.amazon.com and click on the create button. If you still need more details checkout their guide here: docs.aws.amazon.com/AmazonS3/latest/userguide/creating-bucket.html I realized that I didn't cover this after I have uploaded the video. So, I gave a brief on how to configure the credentials to access AWS in the next video: kzbin.info/www/bejne/o3_agJKwa8uUd9k . Please, check that out if you haven't already. I'm planning to make another video which includes JWT authorization while downloading/uploading files. I'll make sure that I cover the basics in that. I hope this helps. Thank you for the comment.
@ikeecode3410
@ikeecode3410 Жыл бұрын
@@jr.developer Thank you for the videos
@nagrajankola1323
@nagrajankola1323 Жыл бұрын
source code?
@jr.developer
@jr.developer Жыл бұрын
Sorry for the delay. Checkout the pinned comment. Thanks.
@mr.deep.
@mr.deep. Жыл бұрын
Thanks
@mr.deep.
@mr.deep. Жыл бұрын
Please upload more video on aws
How to download files from AWS S3 with FastAPI ?
16:41
Jr. Developer
Рет қаралды 4 М.
Next.Js 14 - AWS S3 Image Upload using API Route
35:06
Raddy
Рет қаралды 19 М.
LIFEHACK😳 Rate our backpacks 1-10 😜🔥🎒
00:13
Diana Belitskay
Рет қаралды 3,9 МЛН
Как подписать? 😂 #shorts
00:10
Денис Кукояка
Рет қаралды 8 МЛН
Upload a file to S3 using Python
5:28
Analyst's Corner
Рет қаралды 9 М.
Upload Images Directly to S3 from Front End
18:28
Sam Meech-Ward
Рет қаралды 124 М.
Tutorial: How to upload files into a S3 Bucket using a REST API via API Gateway
12:34
Why You NEED To Learn FastAPI | Hands On Project
21:15
Travis Media
Рет қаралды 163 М.
How to Upload Files to AWS S3 in Flask
20:15
Pretty Printed
Рет қаралды 8 М.
Rails World 2024 Opening Keynote - David Heinemeier Hansson
1:05:46
Ruby on Rails
Рет қаралды 48 М.