aiTextToSpeech- bucket and folder manipulation not working

galleryApi
Kar 2024-11-18 19:11:37 +05:30
parent 8eb4da619a
commit f1198c21de
1 changed files with 2 additions and 2 deletions

View File

@ -59,8 +59,8 @@ const aiTextToSpeech = async (req, res) => {
const formData = new FormData();
formData.append('file1', audioBuffer, 'speech.mp3');
formData.append('file2', textBuffer, 'text.txt');
formData.append('folder', folderName); // Send folder name as form data
formData.append('bucket', 'beanstalkedu-test'); // Adjust bucket if needed
// formData.append('folder', folderName); // Send folder name as form data
// formData.append('bucket', 'docs'); // Adjust bucket if needed
// Send the POST request to upload the files
const response = await axios.post(