Skip to content
This repository has been archived by the owner on Aug 27, 2019. It is now read-only.

Add a file upload field for Documentation of Relationship #11

Open
waldoj opened this issue Dec 27, 2016 · 0 comments
Open

Add a file upload field for Documentation of Relationship #11

waldoj opened this issue Dec 27, 2016 · 0 comments

Comments

@waldoj
Copy link
Contributor

waldoj commented Dec 27, 2016

Right now it's just a text input field. JSON Schema has no concept of files. For this prototype, we need this to look like a file input. I suspect that this is best done via the onBeforeRender function. However we do it, the idea is just to replace the text input field (<input type="text" name="dependent.relationship.documentation">) with a file upload field (<input type="file" />.

Actually supporting this would probably involve using HTML5's file API, base64ing the file, and stuffing it into a string...but that presents its own challenges. Alternately, see how Alpaca does it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant