When using the XML Form View web part, attaching a file to an InfoPath form template you receive an error "The selected file was not found".
After doing some searching on the web I came across this:
<script type="text/javascript">
aspnetForm.encoding = "multipart/form-data";
</script>
By adding this Javascript into a content editor web part on the page the issue is fixed. Dont forget to turn the chrome off on the content editor web part so that it is hidden.
Thanks to SaurabhKV for that one!
http://blogs.msdn.com/saurabhkv/archive/2008/05/20/the-selected-file-was-not-found-infopath-2007-web-form.aspx
No comments:
Post a Comment