Skip to content

Commit 47fb6c4

Browse files
committed
Add notes for local file handling in profile and upload
Added comments in profile page and file upload API indicating that local file handling may need adjustment for production environments.
1 parent 27104bc commit 47fb6c4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/app/(main)/profile/page.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ export default async function ProfilePage() {
9393
• Uploaded {new Date(f.createdAt).toLocaleString()}
9494
</div>
9595
</div>
96+
{/* This gets from local - might need to change for production release */}
9697
<Link
9798
href={`/uploads/${f.fileName}`}
9899
target="_blank"

src/app/api/files/upload/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export async function POST(req: Request) {
7474
}
7575

7676
try {
77-
// Local file upload
77+
// Local file upload - might need to change for production?
7878
const uploadDir = path.join(process.cwd(), 'public', 'uploads');
7979
await fs.promises.mkdir(uploadDir, { recursive: true });
8080

0 commit comments

Comments
 (0)