Skip to content
Advertisement

send blob to python flask and then save it

So I’m trying to make a website that record your voice, the problem is that when I send to a flask server the blob file or the blob url, my flask python code says that is no content while it is, how can I send the blob, so the server can save it as a file.

JavaScript

and my python flask code:

JavaScript

is there a way to do it? send record blob file, download it into python?

Advertisement

Answer

The problem is in this line:

JavaScript

you don’t use FormData.append the right way. it should be:

JavaScript

See documentation: https://developer.mozilla.org/en-US/docs/Web/API/FormData/append

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement