mirror of
https://github.com/jamiepine/voicebox.git
synced 2026-09-20 07:10:40 -07:00
Add voice profile import functionality with file size validation
- Implemented a new endpoint to import voice profiles from ZIP archives. - Added file size validation to ensure uploads do not exceed 100MB. - Enhanced error handling for various exceptions during the import process. - Cleaned up the import function by removing the previous implementation.
This commit is contained in:
@@ -10,9 +10,6 @@ export async function GET() {
|
||||
return NextResponse.json(releaseInfo);
|
||||
} catch (error) {
|
||||
console.error('Error fetching release info:', error);
|
||||
return NextResponse.json(
|
||||
{ error: 'Failed to fetch release information' },
|
||||
{ status: 500 }
|
||||
);
|
||||
return NextResponse.json({ error: 'Failed to fetch release information' }, { status: 500 });
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user