Skip to content

Commit f767226

Browse files
authored
File Uploads (#8)
1 parent d132e8d commit f767226

File tree

11 files changed

+299
-4
lines changed

11 files changed

+299
-4
lines changed

.env.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,6 @@ SINGLESTORE_DATABASE="database"
1919
# Clerk
2020
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=some-publishable-key
2121
CLERK_SECRET_KEY=some-secret-key
22+
23+
# Uploadthing
24+
UPLOADTHING_TOKEN='uploadthing-token'

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ Tracking progress on key features and tasks for the project.
8888
- [x] 🛢️ Set up the database and define data models
8989
- [x] 🔗 Sync folder open state with the URL
9090
- [x] 🔐 Implement user authentication
91-
- [ ] 📁 Enable file upload functionality
91+
- [x] 📁 Enable file upload functionality
9292
- [ ] 📊 Add analytics tracking
9393

9494
### 📝 Note from 5-28-2025
@@ -106,3 +106,12 @@ The database and UI are now connected, some improvements to make:
106106
- [x] Change folders to link components, remove all client state
107107
- [x] Clean up the database and data fetching patterns
108108
- [ ] Real homepage
109+
110+
### 📝 Note from 7-4-2025
111+
112+
Uploading a file to '[uploadthing](https://uploadthing.com/)' works, things that
113+
can be approved:
114+
115+
- [ ] Upload files to the right folder
116+
- [ ] Delete file button
117+
- [ ] Allow files that are not images to be uploaded

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"@libsql/client": "^0.14.0",
2525
"@radix-ui/react-slot": "^1.2.3",
2626
"@t3-oss/env-nextjs": "^0.12.0",
27+
"@uploadthing/react": "^7.3.1",
2728
"class-variance-authority": "^0.7.1",
2829
"clsx": "^2.1.1",
2930
"drizzle-orm": "^0.41.0",
@@ -33,6 +34,7 @@
3334
"react": "^19.0.0",
3435
"react-dom": "^19.0.0",
3536
"tailwind-merge": "^3.3.0",
37+
"uploadthing": "^7.7.2",
3638
"zod": "^3.24.2"
3739
},
3840
"devDependencies": {

0 commit comments

Comments
 (0)