Fixed bug where file inputs get wiped out after submission or abortion.