Skip to content

Input state not resetting after invalid file upload #407

@R-Delfino95

Description

@R-Delfino95

Describe the bug

When a user uploads a file with an invalid format, the input remains in an incorrect state and does not reset properly. Even after trying to upload a valid file, the input stays in an error state.

To Reproduce

Steps to reproduce the behavior:

  1. Create a new asset which contains a Mux Video input.
  2. Try to upload a wrong file using the drag & drop feature (e.g. an image).
  3. Cancel the upload.
  4. Drag & drop another file.
  5. See the error

Which versions of Sanity are you using?

@sanity/cli (global) 3.69.0 (latest: 3.75.0)
@sanity/eslint-config-studio 5.0.1 (up to date)
@sanity/vision 3.69.0 (latest: 3.75.0)
sanity 3.69.0 (latest: 3.75.0)

What operating system are you using?
MacOS 15.3

Which versions of Node.js / npm are you running?

npm 11.0.0
Node.js v23.5.0

Additional context

2025-02-12.12-58-13.mov

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions