File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ This is a Next.js API route that facilitates file uploads from the client-side a
1313## Prerequisites
1414
1515Before you get started, make sure you have the following:
16+
1617- Node.js (v12 or higher recommended)
1718- An Azure Storage account with access keys.
1819- An Azure Blob Container created in your Storage account.
@@ -24,24 +25,32 @@ These instructions will get you a copy of the project up and running on your loc
2425### Installation
2526
26271 . Clone the repository:
28+
2729``` bash
2830git clone https://github.com/your-github-username/your-repo-name.git
2931cd file-uploader-api
3032```
33+
31342 . Install NPM packages:
35+
3236``` bash
3337npm install
3438```
39+
35403 . Create a ` .env.local ` file in the root of your project and populate with configurations from ` .env.example ` .
3641
3742### Running the project
43+
3844After installation, you can start the development server:
45+
3946``` bash
4047npm run dev
4148```
49+
4250Open ` http://localhost:3000 ` with your browser to see the file uploader component where you can upload files to azure blob storage.
4351
4452### API Reference
53+
4554#### POST /api/upload
46- Accepts a multipart/form-data request with a field named files which should contain the files to be uploaded.
4755
56+ Accepts a multipart/form-data request with a field named files which should contain the files to be uploaded.
Original file line number Diff line number Diff line change 11{
22 "name" : " file-uploader" ,
3- "version" : " 0.1 .0" ,
3+ "version" : " 1.0 .0" ,
44 "private" : true ,
55 "scripts" : {
66 "dev" : " next dev" ,
You can’t perform that action at this time.
0 commit comments