Set video processing key for certain file types
This commit is contained in:
parent
491d48467c
commit
95367bed26
@ -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({
|
||||
|
Loading…
x
Reference in New Issue
Block a user