fixed bug in file post code
added option to form submit to include alternate success handler in
<form> tag