#I meant the nodeJS code with which you
1 messages · Page 1 of 1 (latest)
Oh sure
First image I parse automatically the event.target.files that are updated by the user, I set them as "global" state using setFiles and then it is this object the one that I will add to the formData (2nd image) to send in the body to elevenLabs API
I'll take a look in a sec, out for lunch atm
Thanks @delicate torrent
So, looks like a lot of people have trouble with multipart file uploads in node
I found one answer that's pretty close to your example, but not quite 1:1
I don't think I can help you much more than this as I've only dabbled in nodejs
Thanks! Anybody else in the company knows NodeJS or do you have any example code of a formData hitting elevenlabs API in Node? If not I cannot integrate w/ it
oh І'm not a part of the company, merely a volounteer moderator
I don't expect this to be any different from any other formdata that requires file uploads tho
might be worth asking around in a more general programming discord
Well at least it seems from the specs(https://api.elevenlabs.io/docs#/voices/Add_voice_v1_voices_add_pos) that you should send a File (are we talking about something that adheres to the File interface in JS?
the answer I posted uses a fs.createReadStream
І'm not familiar enough with JS to tell you if that does adhere to the File interface or not
Yes, I've looked at it, thanks lugia, but I think that the type returned is not the one expected in this API actually! IAny references of somebody I could talk w/ inside elevenLabs or another channel where I should post the question?
І'm afraid there really isn't another channel you could post in