这里是我将 .mp3 文件建立为文件的地方
const file = new File(buffer, 'audio.mp3', {
type: blob.type,
lastModified: Date.now()
});
我将如何使用(const 文件变量)通过表单传递它?
答案 0 :(得分:-1)
如果你想把它发送到一个 php 页面,那是不可能的,你想在 php $_POST 或 $_GET 变量中设置一个 javascript 对象,那是不可能的!
您可以通过 ajax-call 将其发送到您的 .php