Adding file upload fix
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user