Solution proposed by @sunnyson resolved the issue but need to add some notes:
-
mime-types is not included and when I installed it, getType() function was not recognized. Solved installing just “mime” library.
-
The next place was to relate my own collection with the placed file, refering to THIS REPLY I could easily found the way.
Unfortunately, the documentation is really poor ubt thanks to the community for helping!