uppy
uppy copied to clipboard
autoOpenFileEditor does not work
Initial checklist
- [X] I understand this is a bug report and questions should be posted in the Community Forum
- [X] I searched issues and couldn’t find anything (or linked relevant results below)
Link to runnable example
No response
Steps to reproduce
- NextJS 13.4.3
- uppy/core 3.8.0
- uppy/dashboard 3.7.1
- uppy/react 3.2.1
- uppy/file-input 3.0.4
- uppy/status-bar
- React 18.2.0
using the sample setup for React https://uppy.io/docs/react/ (without webcam)
Sample code
const metaFields = [
{ id: "name", name: "Name", placeholder: "file name" },
{ id: "license", name: "License", placeholder: "specify license" },
{
id: "caption",
name: "Caption",
placeholder: "describe what the image is about",
},
];
function UppySample() {
const [uppy] = React.useState(() => new Uppy());
return <Dashboard uppy={uppy} metaFields={metaFields} autoOpenFileEditor />;
}
- Add
<UppySample />
to a page. - Navigate to the page.
- Add a file to Uppy.
Expected behavior
The File Editor modal should appear, displaying the metaFields for editing.
Actual behavior
The File Editor modal does not appear. The File Editor can be accessed via the edit button as normal.
Hi. The autoopenfileeditor
refers to a file editor plugin, such as @uppy/image-editor
, not the meta editing screen. Perhaps we should update the docs to indicate this.