A File-Uploader microservice for the mu.semte.ch eco system.
485
Allows to upload a file and optionally assign a class to it and write meta information about this transaction in the triple store
To add the file uploader service with all default settings to your mu.semte.ch project add the following snippet to your docker-compose.yml file:
uploader: flowofcontrol/file-uploader
links:
- db:database
volumes:
- ./uploads:/files
This micro-service was extended from the mu-ruby-template so all options offered by the template are offered by this micro-service.
In addtion to those you who wish to can also set the following variables:
This set up shows the file uploader service with all variables set and the upload service connected to the delta-service
uploader:
image: flowofcontrol/file-uploader
links:
- delta:database
volumes:
- ./uploads:/files
environment:
FILE_SERVICE_BASE_URI: "http://example.com/files/"
FILE_SERVICE_FILE_CLASS: "http://file-service.com/File"
FILE_SERVICE_FILE_NAME: "http://file.com/filename"
FILE_SERVICE_ORIGINAL_FILE_NAME: "http://file.com/originalFilename"
FILE_SERVICE_UPLOADED_AT: "http://file.com/uploadedAt"
FILE_SERVICE_FILE_STATUS: "http://file.com/status"
This is how the service could be used with a curl call if it is put in a docker-compose.yml file as uploader:
curl -F "[email protected]" http://uploader/files
Content type
Image
Digest
Size
292.2 MB
Last updated
about 9 years ago
docker pull flowofcontrol/file-uploader