aiTextToSpeech- bucket and folder manipulation not working
parent
8eb4da619a
commit
f1198c21de
|
@ -59,8 +59,8 @@ const aiTextToSpeech = async (req, res) => {
|
||||||
const formData = new FormData();
|
const formData = new FormData();
|
||||||
formData.append('file1', audioBuffer, 'speech.mp3');
|
formData.append('file1', audioBuffer, 'speech.mp3');
|
||||||
formData.append('file2', textBuffer, 'text.txt');
|
formData.append('file2', textBuffer, 'text.txt');
|
||||||
formData.append('folder', folderName); // Send folder name as form data
|
// formData.append('folder', folderName); // Send folder name as form data
|
||||||
formData.append('bucket', 'beanstalkedu-test'); // Adjust bucket if needed
|
// formData.append('bucket', 'docs'); // Adjust bucket if needed
|
||||||
|
|
||||||
// Send the POST request to upload the files
|
// Send the POST request to upload the files
|
||||||
const response = await axios.post(
|
const response = await axios.post(
|
||||||
|
|
Loading…
Reference in New Issue