Bug fix for #13 - race condition on file upload/form post