some code for FileUpload deform widget