Closed kevinaskin closed 6 years ago
node upload/app.js
open http://localhost:3000 choose a file click upload
TypeError: Cannot read property 'file' of undefined
<form action="/" method="post" enctype="multipart/form-data"> <input type="file" name="file" multiple> <input type="submit" value="Upload"> </form>
maybe your name !='file' so file is undefined
open http://localhost:3000 choose a file click upload