add basic format detection on file upload + sample format selection in web page