svelte-forms-lib icon indicating copy to clipboard operation
svelte-forms-lib copied to clipboard

form Field not working with type="file"

Open Mrbeyond opened this issue 4 years ago • 1 comments

Uncaught DOMException: Failed to set the 'value' property on 'HTMLInputElement': This input element accepts a filename, which may only be programmatically set to the empty string.

The Field with type="file" throws the error above.

Mrbeyond avatar Sep 11 '21 05:09 Mrbeyond

@Mrbeyond when does this happen - on initialisation with an empty value, when selecting a file, or some other event?

I'm not sure svelte-forms-lib is a good fit for a file upload, as it doesn't support any of the complexity around file uploads that something like dropzone supports

larrybotha avatar Sep 23 '21 19:09 larrybotha