Extenedd the app.py program to allow mw to query files which have been uploaded