formio.js icon indicating copy to clipboard operation
formio.js copied to clipboard

File component support.

Open hauter opened this issue 9 years ago • 6 comments

Why doesn't it support for file component?

hauter avatar Jun 07 '17 09:06 hauter

I have the same question, it seems that this library does not support file component, just throws the message "unknown component: file" when trying to render a file type input.

coronoz avatar Jun 07 '17 12:06 coronoz

I just hit on this limitation as well. In my initial tests, I thought it would support, but it appears that that was because I had a wrapper of ngFormio or ng2-formio, which has file component support.

@travist Is this by design that formio.js does not allow the file component (even with the 'custom URL' designation)? And if so, do you have a recommendation on how to bring in the 'official' file uploader, or perhaps a third party one such as FineUploader, into formio.js?

Thanks!

rmckeel avatar Jun 13 '17 16:06 rmckeel

For what it's worth (for me, hours of investigation and trial environment set up perhaps someone else can be spared), it appears ng2-formio doesn't have the file component either (just a pass-through to formiojs), whereas the ngFormio library does have the file component.

@travist I'm curious, is that a "to be done" or a "won't be done" for the file component in ng2-formio and/or formio.js?

Thanks!

rmckeel avatar Jun 14 '17 23:06 rmckeel

This is now released in version 2.10.0. Thanks everyone for your patience and thanks @randallknutson for getting it done.

travist avatar Jun 23 '17 17:06 travist

Go @travist @randallknutson! Thanks.

Does this mean NG2/4 apps will now have access to the file uploader as well? And presumably, nothing will change for the NG1 app?

rmckeel avatar Jun 23 '17 19:06 rmckeel

Thanks @travist and @randallknutson!!!!

coronoz avatar Jun 23 '17 19:06 coronoz