Skip to content

Commit e48b493

Browse files
committed
created functions to handle s3 upload of images by user in next.js
1 parent 0faa30d commit e48b493

File tree

6 files changed

+1378
-8
lines changed

6 files changed

+1378
-8
lines changed

.env.example

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
11
HF_API_URL=YOUR_HF_API_URL
2+
AWS_REGION=us-east-1
3+
AWS_ACCESS_KEY_ID=your_access_key_here
4+
AWS_SECRET_ACCESS_KEY=your_secret_key_here
5+
AWS_S3_BUCKET_NAME=your-bucket-name-here

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
"prepare": "husky"
1212
},
1313
"dependencies": {
14+
"@aws-sdk/client-s3": "^3.864.0",
15+
"@aws-sdk/s3-request-presigner": "^3.864.0",
1416
"next": "15.4.6",
1517
"react": "19.1.0",
1618
"react-dom": "19.1.0",

0 commit comments

Comments
 (0)