View Code? Open in Web Editor
NEW
This repository contains the code for how to create a simple file sharing site that also includes password protected files and a download count tracker. This project uses Express and MongoDB.
JavaScript 41.58%
Shell 1.37%
EJS 35.08%
CSS 21.97%
password-protected-file-sharing's Issues
Create the schema of the file.
Create a form with file upload field, password field and a submit button.
Render the link to download the file
If the user entered the password then protect the file with password.
If the password matches only then can a file be downloaded
Deploy the application on the server
Create a post api which will recieve the data from the form
Upload a file to /uploads folder by using multer
Render a initial view using SSR