INTERNAL_CLIENT_ERROR using uploading thing

Does anyone know what this error means? My file router is very simple:
singleImageUploader: f({
image: {
maxFileSize: "2MB",
maxFileCount: 1,
},
})
// Set permissions and file types for this FileRoute
.middleware(handleAuth)
.onUploadError(({ error, event, fileKey, req, res }) => {
console.log("error", error);
})
.onUploadComplete(({ file }) => {
console.log("file uploaded: ", file);
}),
singleImageUploader: f({
image: {
maxFileSize: "2MB",
maxFileCount: 1,
},
})
// Set permissions and file types for this FileRoute
.middleware(handleAuth)
.onUploadError(({ error, event, fileKey, req, res }) => {
console.log("error", error);
})
.onUploadComplete(({ file }) => {
console.log("file uploaded: ", file);
}),
and i use it with the useUploadThing hook as seen in the second image. versions: "@uploadthing/react": "^7.3.0", "uploadthing": "^7.5.2" any help is appreciated
No description
No description
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?