uppy icon indicating copy to clipboard operation
uppy copied to clipboard

autoOpenFileEditor does not work

Open jmschrack opened this issue 1 year ago • 1 comments

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 />;
}

  1. Add <UppySample /> to a page.
  2. Navigate to the page.
  3. 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.

jmschrack avatar Jan 19 '24 22:01 jmschrack

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.

arturi avatar Jan 28 '24 12:01 arturi