Skip to content

file widget returns 'must be string' for @rjsf/daisyui on submit #4803

@himelpdas

Description

@himelpdas

Prerequisites

What theme are you using?

daisyui

Version

6.0.0-beta.21

Current Behavior

with @rjsf/daisyui, when trying to use file widget as described in the wiki

https://rjsf-team.github.io/react-jsonschema-form/docs/usage/widgets#file-widgets

I get an error ''must be string"

Image

Expected Behavior

This issue does not appear when using @rjsf/core. I get the expected results and am able to process the b64 encoded file in the submit handler.

Steps To Reproduce

  1. import { Form } from '@rjsf/daisyui'
  2. create a simple file widget like so https://rjsf-team.github.io/react-jsonschema-form/docs/usage/widgets#file-widgets
  3. try to submit a file
  4. get error 'must be string'

Environment

- OS: Ubuntu 25.04
- Node: 24.8.0
- pnpm: 10.17.0
- daisyui: 5.1.18

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions