Fixing bug when selecting option uploading files -refs #6863