Upload collection should allow providing a description/hint message for the upload field #1998
finkinfridom
started this conversation in
Feature Requests & Ideas
Replies: 2 comments 1 reply
-
Not specific to uploads, the admin.description on a collection should do it: https://payloadcms.com/docs/configuration/collections#admin-options I believe this is shown everywhere you will need it. |
Beta Was this translation helpful? Give feedback.
1 reply
-
After running into this same issue, the workaround I've come up with is to add a UI field with a simple component: {
type: "ui",
name: "uploadNotes",
label: "Upload Notes",
admin: {
components: {
Field: () =>
TextComponent({
text: "This note will be visible when uploading a file."
})
}
}
} Component: import * as React from "react"
const TextComponent = ({ text }: { text: string }) => {
return <div>{text}</div>
}
export default TextComponent Unfortunately this is also visible any time you open the document. It'd be far more ideal to be able to add a |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We use several
upload
- based collections, one of which has a long list of availablemimeTypes
.Unfortunately, the users cannot know in advance which are the allowed types and we cannot provide a meaningful description of them.
Could be an option to have an
hintText
ordescription
intoadmin.upload
object?Thanks
Beta Was this translation helpful? Give feedback.
All reactions