Mendix documentation and training offers enough resources on this topic
You should check for example this learning path https://gettingstarted.mendixcloud.com/link/module/49/lecture/383 or this quick start guide https://docs.mendix.com/howto/data-models/working-with-images-and-files#4-file-documents