Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sofiane-abou-abderrahim/adding-file-upload-to-a-nodejs-express-website
In this small NodeJS & Express web application, I added file uploads. First, to do this, I added the input type file to the HTML elements to give the user a file picker. Then, I also configure the form element by using the enctype attribute and setting it as multipart/form-data. Afterwards, I had to handle the file on the server side, so I used the Multer middleware to do this.
https://github.com/sofiane-abou-abderrahim/adding-file-upload-to-a-nodejs-express-website
express express-js expressjs file-preview file-upload multer nodejs nodejs-server
Last synced: 1 day ago
JSON representation
In this small NodeJS & Express web application, I added file uploads. First, to do this, I added the input type file to the HTML elements to give the user a file picker. Then, I also configure the form element by using the enctype attribute and setting it as multipart/form-data. Afterwards, I had to handle the file on the server side, so I used the Multer middleware to do this.
- Host: GitHub
- URL: https://github.com/sofiane-abou-abderrahim/adding-file-upload-to-a-nodejs-express-website
- Owner: sofiane-abou-abderrahim
- Created: 2022-09-14T11:52:27.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-09-14T11:52:36.000Z (over 2 years ago)
- Last Synced: 2023-03-10T16:38:49.162Z (almost 2 years ago)
- Topics: express, express-js, expressjs, file-preview, file-upload, multer, nodejs, nodejs-server
- Language: JavaScript
- Homepage:
- Size: 83 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0