597 add form flow fixes

closes #597
also, let's add a test for this new function, it can go in tests/cljs/ona/upload_test.cljs