MCPcopy
hub / github.com/CapSoftware/Cap / getSubpath

Function getSubpath

apps/web/app/api/upload/[...route]/multipart-utils.ts:3–9  ·  view source on GitHub ↗
(input: { subpath?: string; fileKey?: string })

Source from the content-addressed store, hash-verified

1import { parseVideoIdOrFileKey } from "../utils";
2
3export const getSubpath = (input: { subpath?: string; fileKey?: string }) => {
4 if ("fileKey" in input) {
5 return undefined;
6 }
7
8 return input.subpath ?? "result.mp4";
9};
10
11export const getMultipartFileKey = (
12 userId: string,

Callers 2

multipart.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected