Fix some typo + add doc for mail and media library service
2 unresolved threads
2 unresolved threads
Compare changes
- FORESTIER Fabien authored
@@ -2,7 +2,7 @@
@@ -2,7 +2,7 @@
This service allows to upload a file in the configured bucket of a defined instance of [Minio](https://min.io/) (compatible with S3).
@@ -10,11 +10,11 @@ This service allows to upload a file in the configured bucket of a defined insta
@@ -10,11 +10,11 @@ This service allows to upload a file in the configured bucket of a defined insta
The entrypoint of the service is a REST API provided by a [NestJS](https://github.com/nestjs/nest) application. The service uses the [Javascript MinIO SDK](https://docs.min.io/docs/javascript-client-quickstart-guide.html) to interact with a running instance of Minio.
Before uploading the file, it makes sure that the specified bucket is created. If it is not the case, it creates it with a `public read access`.
The files are classified in sub-buckets as following `/<specified-bucket-name>/<year-YYYY>/<month-MM>/`.
The uploaded files keep there original name but are prefixed by an md5 computed based on their content with gives the following pattern for file names: `<md5>-<original-name>`. This means that if we upload twice the exact same picture, with the same name there will be only on file stored in MinIO.