Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 638 Bytes

README.md

File metadata and controls

27 lines (19 loc) · 638 Bytes

Simple upload file locally

This is a Next.js project bootstrapped with create-next-app!

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev

Open http://localhost:3000 with your browser to see the result.

View page.tsx and api/file/route.tsx

If you are using vercel blob, you need to fill your BLOB_READ_WRITE_TOKEN in .env or .env.local file.

recommand: copy .env to .env.local

STORE_PATH=upload
BLOB_READ_WRITE_TOKEN=Yours