I want to share something that blocked us for a couple of days: the fileprovider code MUST be inserted between the application tags, not after it.
It may be trivial, but it's never specified, and I thought that I could have helped someone!
(thanks again to piolo94)