Update file type enum
Add error logging
Rework details fragment