Open almereyda opened 7 years ago
@acorbi Please feel free to extend the description of this PR, if you see additional aspects which need to be present for merge.
This is slowly evolving, also see https://hack.allmende.io/ecobytes-20170621-mms-research?both#17092017
I am currently reorganising my thoughts around adding to IPFS and updating the media
metadata with the mimetype
, hash
and a url
(generated from a URL template).
If we switched from the node-fileupload
approach to multer
, IPFS support could be implemented and logically separated as a Multer storage engine and benefit a wider community of developers. _handleFile
and _removeFile
would then be mapped to pin (implied on add) and unpin actions with the IPFS daemon. It also allows for adding a ReadableStream
instead of a Buffer
, which improves memory handling.
The public and private IPFS daemons may as well be linked to each other by an ipfs-cluster
.
Refering to #426 Deployment of FLOSS document management system.
This pull request combines commits which provide a media management engine to the data service.
media
model and controllers