Fix a bug with upload form