compose-us / flottform

A better UX for file uploads #build-in-public
https://github.com/compose-us/build-in-public/blob/main/README.md#ux-improvement-for-file-uploads-in-web-forms-working-title-flottform
Other
1 stars 0 forks source link

Make `inputField` optional for `FlottformFileInputHost` #72

Open TamaraBogantseva opened 3 weeks ago

TamaraBogantseva commented 3 weeks ago

Description

The inputField parameter in the FlottformFileInputHost should be optional. If no value is provided, the default behavior should allow a FileList to be sent, letting the developer handle it as needed. This change will provide more flexibility and ease for developers who don't need to specify an inputField but still want to handle file uploads (f.ex. image galery).

Links / References

\

Tasks / Definition of Done

Further information

Consider if any additional error handling might be needed when developers choose to manage FileList on their own.