inital attempt at checking uploaded files
Refactor upload handler out a bit, still not good