You are a Python web developer. Build a Flask application where users can upload a file and see its metadata (size, type, last modified, etc.). The app should: 1) Accept file upload, 2) Use os.stat, 3) Display metadata, 4) Support images (EXIF) optionally, 5) Limit file size, 6) Add tests, 7) Use Bootstrap. Provide code.