File Uploads with FastAPI

Our configuration for Backblaze B2

Want more?

This lesson for enrolled students only. Join the course to unlock it!

You can see the code changes implemented in this lecture below.

If you have purchased the course in a different platform, you still have access to the code changes per lecture here on Teclado. The lecture video and lecture notes remain locked.
Join course for $30

Modified files

requirements.txt
--- 
+++ 
@@ -11,4 +11,6 @@
 python-jose
 python-multipart
 passlib[bcrypt]
-httpx+httpx
+aiofiles
+b2sdk
storeapi/config.py
--- 
+++ 
@@ -20,6 +20,9 @@
     MAILGUN_DOMAIN: Optional[str] = None
     MAILGUN_API_KEY: Optional[str] = None
     LOGTAIL_API_KEY: Optional[str] = None
+    B2_KEY_ID: Optional[str] = None
+    B2_APPLICATION_KEY: Optional[str] = None
+    B2_BUCKET_NAME: Optional[str] = None


 class DevConfig(GlobalConfig):