Skip to content

Commit

Permalink
docs: Change fd to formData (pingdotgg#422)
Browse files Browse the repository at this point in the history
  • Loading branch information
bricesuazo authored Oct 9, 2023
1 parent b7341a8 commit 6ef6565
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 6ef6565

Please sign in to comment.