Fix upload form for IE

From #2176.