You will need to use the StringFromFile java action from the Community Commons module in the Marketplace to read the uploaded file and return it as a string you can display on screen.
https://docs.mendix.com/appstore/modules/community-commons-function-library
Hope this helps.