Set video processing key for certain file types

This commit is contained in:
2023-10-19 16:49:23 -04:00
parent 491d48467c
commit 95367bed26

View File

@ -151,6 +151,12 @@ export async function onRequestPost(context: RequestContext) {
context.data.current_user.id,
{ expirationTtl: 3600 }
);
if (["mkv", "mov", "wmv"].includes(fileExt.toLowerCase()))
await context.env.DATA.put(`videoprocessing_${fileKey}.${fileExt}`, "1", {
expirationTtl: 3600,
});
await context.env.DATA.put(
`report_${reportId}`,
JSON.stringify({