We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b481f13 commit de178e7Copy full SHA for de178e7
examples/minimal-convex/convex/uploadthing.ts
@@ -6,6 +6,7 @@ import {
6
createInternalAction,
7
createUploadthing,
8
FileRouter,
9
+ UTFiles,
10
} from "uploadthing/convex";
11
12
import { api } from "./_generated/api";
@@ -52,7 +53,7 @@ const router = {
52
53
// (Optional) Label your files with a custom identifier
54
const filesWithMyIds = files.map((file, idx) => ({
55
...file,
- customId: `${idx}-${randomUUID()}`,
56
+ customId: `${idx}-${crypto.randomUUID()}`,
57
}));
58
59
// Return some metadata to be stored with the file
0 commit comments