Metadata
- Source
- SJRK-32
- Type
- New Feature
- Priority
- Major
- Status
- Closed
- Resolution
- Done
- Assignee
- Alan Harnum
- Reporter
- Gregor Moss
- Created
2017-10-31T16:42:41.706-0400 - Updated
2018-05-25T14:55:06.828-0400 - Versions
- N/A
- Fixed Versions
- N/A
- Component
-
- Storytelling Tool Server
- Storytelling Tool UI
Description
Add capability to upload a media file (video, audio, image), to validate the type, to restrict the available files based on type, etc.
Possibly relevant, possibly out of date: https://docs.fluidproject.org/infusion/development/UploaderAPI.html
Consider native browser interface options
Comments
-
Alan Harnum commented
2017-12-14T11:29:16.149-0500 I propose we handle this by creating a Kettle middleware wrapper for https://github.com/expressjs/multer, the standard Express middleware for handling multipart/form-data uploads.
This would model how Kettle wraps some of the other standard Express middleware like body-parser.
A basic demo of this is in this branch/file - this should be expanded into a full middleware wrapper and contributed back to Kettle: https://github.com/waharnum/sjrk-story-telling-server/blob/multer/src/js/middleware.js
-
Antranig Basman commented
2017-12-14T11:33:03.056-0500 Sounds very good to me!
-
Gregor Moss commented
2018-04-23T20:47:56.351-0400 Seeing as how an uploader grade has been added and implemented at least for the uploading of image files, I propose closing this issue and then filing a Jira each for file validation and for restricting files based on file type.
There are already separate Jiras for uploading video (SJRK-27) and audio (SJRK-31 and SJRK-10)