how do I post form data and upload file with the JS fetch API
问题 I am trying to post form data using JS fetch API, also i successfully send data and get response , but got an error in file uploaded my file is not uploaded , and also not get stored filename into database. <form id="signup"> <label for="myName">Send me your name:</label> <input type="text" id="myName" name="name" value="abc"> <br> <label for="userId">your id:</label> <input type="text" id="userId" name="id" value="123"> <br> <label for="pic">your photo:</label> <input id="profile" name=