add a level of flexibility on file upload widget