reactjshideuppy

Uppy showSelectedFiles not hiding files


I have this supersimple ReactJs Codesandbox can someone explain how the showSelectedFiles: false works. I read the docs that the selected files after user have picked files is hidden but they are not in my Sandbox.

What I'm I doing wrong?


Solution

  • You need to pass the option in as a prop to your <Dashboard> and not when you initialize Uppy() like this:

      render() {
        return (
          <Dashboard
            uppy={this.uppy}
            plugins={["Webcam"]}
            showSelectedFiles={false}
          />
        );
      }