#I meant the nodeJS code with which you

1 messages · Page 1 of 1 (latest)

mint lily
#

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

delicate torrent
#

I'll take a look in a sec, out for lunch atm

mint lily
#

Thanks @delicate torrent

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

mint lily
#

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

delicate torrent
#

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

mint lily
delicate torrent
#

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

mint lily
#

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?

delicate torrent
#

І'm afraid there really isn't another channel you could post in