fix form submit in upload dialog