Files
mtusi2026lab4/app/src/attachments/upload-request.ts
T

10 lines
346 B
TypeScript

/** Request of the upload route; see the onRequest hook in main.ts. */
export type UploadRequest = {
method: string;
routeOptions?: { url?: string };
headers: Record<string, string | string[] | undefined>;
/** Content-Type as sent by the client (the header itself is rewritten). */
uploadContentType?: string | string[];
body?: unknown;
};