-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question : how could we customize files meta-data ? #809
Comments
Hi! Right now these can only be plain text inputs that you can add via https://uppy.io/docs/dashboard/#metaFields. There were some requests for |
Thanks Arturi. Regarding all these issues i think it could be great to add a generic approach that allows to add any kind of field / data with custom UI, it's the right time to do it ! Example of use cases that could be hard to implement each time someone ask you to add it :
|
Maybe
? I dislike having multiple ways to do 1 thing. But i think i dislike always leaking a lot of html structure into what could be simple key/value configuration, more. |
@cmawhorter does it allow to put some custom React nodes ? |
@arturi did you planned to work on it ? |
Just a friendly note that Artur is on holidays, so it might take a bit before he can respond :) |
ok thx @kvz |
We want to do this but there is no timeline currently. |
@goto-bus-stop how could i help ? |
If you would like to PR it that would be very helpful! I think, a good way to approach this is to allow the values of the Dashboard's metaFields option to have a uppy.use(Dashboard, {
/* ..., */
metaFields: [
{
id: 'location',
name: 'Coordinates',
render ({ value, onChange }) {
return <CoordinateSelector
currentCoordinates={value.split(',')}
onChange={(coords) => onChange(`${coords[0]},${coords[1]}`)}
/>
}
}
]
}) The rendering happens here: uppy/packages/@uppy/dashboard/src/components/FileCard.js Lines 40 to 57 in d657819
Until the user presses "Save changes" in the dashboard, all changes are stored in the FileCard component's |
@Aarbel i'm not too familiar with react, but you can build custom react components to implment your own form elements/behavior. (unrelated to uppy i built a wrapper around tinymce to get a richtext form component). it's ok. |
i want to add a token input for each file (to assign people to files). Will be hard to do it around uppy, or maybe in a very unstable way, don't you think ? |
Putting anything that's not a simple |
Are there any updates on this issue, like adding select fields to the metaData form. |
Overbooked since August, no chance for me to work on it the next months :/ |
We love this idea, but will probably do it via jsx rendering as was mentioned by Renee and also discussed in #617 Closing this one then! |
Hi Uppy Teams
i'm just discovering Uppy, i need to put an other meta-data field in this view, do you think it will be easy to do it using Uppy ?
We can put a
Caption
, i would like to add aRecipients
input (which will be a React Component)Thanks a lot
The text was updated successfully, but these errors were encountered: