Question: Create a simple HTML form that let s you register a name, username, email, password, and a photo id . The form will upload the
Create a simple HTML form that lets you register a name, username, email,
password, and a photo id
The form will upload the photo file and all the text contents of the form to the site
the site will save the photo to a folder, return the data back with a success
message and the photo url, or if it fails, an error message.Step : Client Create the form in HTML
Lets call it registerUserhtml and place it in a views folder within the following
project structure:
views
registerUser.html
server.js
Step : Client
Set the action attribute on the form
Set the proper value for the method attribute on the form
Set the proper value for the enctype attribute on the form
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
