Adding file upload fix

This commit is contained in:
2026-05-13 07:50:33 +02:00
parent 3d4485c973
commit b8bc7cc5f8
3 changed files with 46 additions and 4 deletions
+4 -1
View File
@@ -13,7 +13,10 @@ const client = new S3Client({
accessKeyId: process.env.MINIO_ROOT_USER || 'minioadmin',
secretAccessKey: process.env.MINIO_ROOT_PASSWORD || 'minioadmin',
},
forcePathStyle: true, // required for MinIO
forcePathStyle: true, // required for MinIO,
requestChecksumCalculation: 'WHEN_REQUIRED', // ← don't add checksums automatically
responseChecksumValidation: 'WHEN_REQUIRED', // ← don't validate on response either
});
export function publicUrl(objectKey) {
+3 -3
View File
@@ -90,14 +90,14 @@ router.post('/', requireIngestKey, async (req, res) => {
project.fps ?? null,
project.defaultSlideType ?? project.default_slide_type ?? null,
project.background ?? null,
project.platform_targets ?? null,
project.platform_targets != null ? JSON.stringify(project.platform_targets) : null,
project.duration_seconds ?? null,
project.youtube_url ?? null,
project.output_video ?? null,
project.keynote_file ?? null,
project.parent_project ?? null,
project.outro ?? null,
project.shorts ?? null,
project.outro != null ? JSON.stringify(project.outro) : null,
project.shorts != null ? JSON.stringify(project.shorts) : null,
project.manuscript ?? null,
JSON.stringify(project),
]