jsonform / jsonform

Build forms from JSON Schema. Easily template-able. Compatible with Bootstrap 3 out of the box.
https://jsonform.github.io/jsonform/playground/index.html
MIT License
2.73k stars 554 forks source link

playground: add file example with upload in textarea #379

Closed joelguittet closed 2 years ago

joelguittet commented 2 years ago

Hello @tchapi

Here is a file upload example as discussed at https://github.com/jsonform/jsonform/pull/377.

As discussed at https://github.com/jsonform/jsonform/issues/375, there is a workaround to get it working. A field is created in the form just to have the upload button in the form. We can see it's not submitted because it's value doesn't exist ("input" type "file" in html has no value).

Joel

joelguittet commented 2 years ago

Hello @tchapi Any input required to get this PR merged ? Thanks Joel

tchapi commented 2 years ago

Sorry @joelguittet it's been a rough month and I haven't had much time. Will look at it and likely merge start of next week

Thanks again

joelguittet commented 2 years ago

No problem, thanks for merging !