Here is where I have established the .mp3 file as a file
const file = new File(buffer, 'audio.mp3', {
type: blob.type,
lastModified: Date.now()
});
How would I go about using the (const file variable) to pass it thru a form?
Here is where I have established the .mp3 file as a file
const file = new File(buffer, 'audio.mp3', {
type: blob.type,
lastModified: Date.now()
});
How would I go about using the (const file variable) to pass it thru a form?
If you mean to send it to a php page, thats not possible you wanna set a javascript object in a php $_POST or $_GET variable, thats not possible!
You could send it via ajax-call to your .php