Skip to content

Commit

Permalink
Change fd to formData
Browse files Browse the repository at this point in the history
  • Loading branch information
bricesuazo authored Oct 8, 2023
1 parent b7341a8 commit 678bce8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/pages/api-reference/server.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ import { utapi } from "~/server/uploadthing.ts";

async function uploadFiles(formData: FormData) {
"use server";
const files = fd.getAll("files");
const files = formData.getAll("files");
const response = await utapi.uploadFiles(files);
// ^? UploadedFileResponse[]
}
Expand Down

0 comments on commit 678bce8

Please sign in to comment.