feat: add S3 file upload functionality and update profile image handling
- Added @aws-sdk/client-s3 dependency for S3 interactions. - Refactored ProfilePage to allow file uploads for avatar and header images, replacing URL inputs with file inputs. - Implemented loading state and error handling during image uploads. - Created new API route for handling file uploads to S3, including public URL generation. - Enhanced RightSidebar to show loading skeleton while fetching data.
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
"type-check": "tsc --noEmit"
|
||||
},
|
||||
"dependencies": {
|
||||
"@aws-sdk/client-s3": "^3.972.0",
|
||||
"@upstash/redis": "^1.34.3",
|
||||
"bcryptjs": "^2.4.3",
|
||||
"crypto-js": "^4.2.0",
|
||||
|
||||
Reference in New Issue
Block a user