BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/uifoundry/upload-field

Upload Field

uifoundry/upload-field
FreeComponent

Payload Upload Field for media collection-related fields

Live preview

live · rendered by the registry
Rendered by uifoundry on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://uifoundry.dev/r/upload-field.json

Source

registry/payload/fields/upload/config.tsuifoundry.dev/r/upload-field.json
1import type { PickRequired } from "~/types";
2import type { UploadField } from "@/registry/default/lib/fields";
3import { COLLECTION_SLUG_MEDIA } from "@/registry/default/lib/constants/collections";
4
5type RequiredFields = PickRequired<UploadField, "name">;
6
7export default function uploadField({
8 ...restConfig
9}: RequiredFields): UploadField {
10 return {
11 type: "upload",
12 relationTo: COLLECTION_SLUG_MEDIA,
13 ...restConfig,
14 } as UploadField;
15}

What it pulls in

Other registry items

  • @uifoundry/field-types

Files it writes

  • registry/payload/fields/upload/config.ts

Facts

Registry
uifoundry
Type
registry:component
Access
Free
Files written
1
Licence
NOASSERTION
First indexed
2026-08-01
Last confirmed
2 days ago

Go to the source

Docs on uifoundry uifoundry.dev UIFoundry/uifoundry on GitHub Raw registry item This item as JSON

More from uifoundry

All 54 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Animated Groupanimated-groupuifoundryComponentsFree2 deps
ButtonbuttonuifoundryComponentsFree3 deps
Call To Action Pair Fieldcall-to-action-pair-fielduifoundryComponentsFree3 deps
CardcarduifoundryComponentsFree1 dep
Description Fielddescription-fielduifoundryComponentsFree2 deps
Flickering Gridflickering-griduifoundryComponentsFree1 dep
Header Fieldheader-fielduifoundryComponentsFree2 deps
Icon ComponenticonuifoundryComponentsFree2 deps
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex