A simple demo on how to add a file upload that shows the image being uploaded and later replace it with the actual one.
- Clone this repo
- Run
npm install
- Run
npm run dev
- Open
http://localhost:3000
Any file you upload will be stored in the public/img
folder.