kendraio / kendraio-app

Kendraio App
https://app.kendra.io
MIT License
22 stars 6 forks source link

File attachments and binary data #37

Closed darrenmothersele closed 4 years ago

darrenmothersele commented 5 years ago

The previous PouchDB-based code allowed for schemas to include "attachments" whereby binary files could be included along with metadata.

This issue is to look at a mechanism for handling binary files within the new Form builder and a mechanism for allowing binary data to form part of the data passed through workflow blocks.

darrenmothersele commented 5 years ago

Once completed, the Formly component versions of the audio clips widget, and image tagger widget can be updated.

darrenmothersele commented 5 years ago

Dexie supports storing binary data: https://dexie.org/docs/API-Reference#storing-binary-data also see #44

darrenmothersele commented 4 years ago

Missing ControlValueAccessor for file input #7341 https://github.com/angular/angular/issues/7341

darrenmothersele commented 4 years ago

https://formly.dev/examples/other/input-file

darrenmothersele commented 4 years ago

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file

The string is prefixed with C:\fakepath\, to prevent malicious software from guessing the user's file structure.

darrenmothersele commented 4 years ago

As of now, binary files and data are now supported in workflows.

There's a couple of examples on Workflow Cloud.

Leaving this issue open as legacy widgets need updating to use new protocol.

darrenmothersele commented 4 years ago

Now supports reading files from HTTP download too. As demonstrated in this Gist: https://gist.github.com/darrenmothersele/3cd3b703c8b70c874049133440707f22