hack dynform to support file uploads

Dynform never had high code quality. This drags it down further.