fix file upload from dialog