I am working on a service called Fon2Scratch, and I’m working on the part where the user uploads the file, and sends it to me.
I have tried many methods such as:
window.open('mailto:[email protected]?subject=Fon2Scratch Upload&body=File is ' + File.name + '&attach=' + File);
window.open('mailto:[email protected]?subject=Fon2Scratch Upload&body=File is ' + File.name + '&attachment=' + File);
window.open('mailto:[email protected]?subject=Fon2Scratch Upload&body=File is ' + File.name + '&attachments=' + File);
None of these methods worked. How does one get an attachment on a mailto preset?
Edit: the File part is
HTML:
<input type="file" accept="font/ttf, font/otf, font/eoff, font/woff, font/svg, font/woff2" id="file">
JS:
const File = document.getElementById("file");
If this isn’t possible, then just tell me how to get JavaScript ID elements into NodeJS.