├── .gitignore ├── README.md ├── next-env.d.ts ├── next.config.ts ├── package.json ├── pnpm-lock.yaml ├── src ├── pages │ ├── _app.tsx │ ├── api │ │ └── trpc │ │ │ └── [trpc].ts │ ├── index.tsx │ ├── react-hook-form.tsx │ └── vanilla.tsx ├── server │ ├── routers │ │ ├── room.ts │ │ └── viewer.ts │ └── trpc.ts └── utils │ ├── schemas.ts │ ├── trpc.ts │ └── writeFileToDisk.ts └── tsconfig.json /.gitignore: -------------------------------------------------------------------------------- 1 | public/uploads -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/examples-next-formdata/HEAD/README.md -------------------------------------------------------------------------------- /next-env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/examples-next-formdata/HEAD/next-env.d.ts -------------------------------------------------------------------------------- /next.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/examples-next-formdata/HEAD/next.config.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/examples-next-formdata/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/examples-next-formdata/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /src/pages/_app.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/examples-next-formdata/HEAD/src/pages/_app.tsx -------------------------------------------------------------------------------- /src/pages/api/trpc/[trpc].ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/examples-next-formdata/HEAD/src/pages/api/trpc/[trpc].ts -------------------------------------------------------------------------------- /src/pages/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/examples-next-formdata/HEAD/src/pages/index.tsx -------------------------------------------------------------------------------- /src/pages/react-hook-form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/examples-next-formdata/HEAD/src/pages/react-hook-form.tsx -------------------------------------------------------------------------------- /src/pages/vanilla.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/examples-next-formdata/HEAD/src/pages/vanilla.tsx -------------------------------------------------------------------------------- /src/server/routers/room.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/examples-next-formdata/HEAD/src/server/routers/room.ts -------------------------------------------------------------------------------- /src/server/routers/viewer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/examples-next-formdata/HEAD/src/server/routers/viewer.ts -------------------------------------------------------------------------------- /src/server/trpc.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/examples-next-formdata/HEAD/src/server/trpc.ts -------------------------------------------------------------------------------- /src/utils/schemas.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/examples-next-formdata/HEAD/src/utils/schemas.ts -------------------------------------------------------------------------------- /src/utils/trpc.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/examples-next-formdata/HEAD/src/utils/trpc.ts -------------------------------------------------------------------------------- /src/utils/writeFileToDisk.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/examples-next-formdata/HEAD/src/utils/writeFileToDisk.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trpc/examples-next-formdata/HEAD/tsconfig.json --------------------------------------------------------------------------------