“How to upload a file to a server along with form data that is sent to Google Sheets using fetch?”
I need to create a field for uploading files (PDF, JPG) to a server. The problem is that my contact form sends data to a Google Sheet using fetch. I don’t know how to add code that will send the file to the server without affecting the other data that’s sent from the form to the Google Sheet.
How to make fetched data available for other functions
I am fetching an array of data from a php file (preparedata.php) to javascript file.
How to send POST data to php script using javascript?
Stop! Please, don’t send me to some DefaultJavascriptTutorial about fetch(). I read all of it already. Please don’t advice answers using jQuery or some other js framework. I’m trying to use clean js.