Add FormData debug logging for subtitle upload
This commit is contained in:
parent
168f4e17ba
commit
b4ddcc8247
1 changed files with 10 additions and 0 deletions
|
|
@ -118,6 +118,16 @@ export default function SubtitlesPage() {
|
|||
formData.append('background_opacity', '0.0');
|
||||
formData.append('word_timestamps', '0');
|
||||
|
||||
// Debug: Log FormData contents
|
||||
console.log('📤 Sending FormData to subtitle API:');
|
||||
for (const [key, value] of formData.entries()) {
|
||||
if (value instanceof File) {
|
||||
console.log(` ${key}:`, value.name, `(${value.size} bytes, ${value.type})`);
|
||||
} else {
|
||||
console.log(` ${key}:`, value);
|
||||
}
|
||||
}
|
||||
|
||||
const response = await modulesApi.processSubtitles(formData);
|
||||
|
||||
const job = response.data;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue