Add FormData debug logging for subtitle upload

This commit is contained in:
DJP 2025-12-10 23:06:43 -05:00
parent 168f4e17ba
commit b4ddcc8247

View file

@ -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;