improve file type message, fix missing directory for drag-n-drop