Make file upload fields load correctly. Closes #242.