What you mean ‘not found’?
Stupid, stupid, stupid.
You can either apply that to me thinking that attaching a file to my InfoPath task form would be easy or MS for allowing such a nasty insidious bug to crawl out into production.
Here’s the issue. I have an InfoPath task form running under MOSS Enterprise forms services. Upon this form I have a couple of file attachment controls. One would thunk that given that file attachment controls seem to have been a part of HTML since the mid 1990′s (RFC 1867) that this should be a totally elementary operation.
Heh, think again.
I found this out the hard way when, after browsing to my file and pressing the Upload button I was met with a rather curt ‘The Selected File was not found’ error message. A hunt around the blogsphere bore only one low dangling fruit : A WorkFlow that Uploads a Document via a Task using an InfoPath Form. which I gave a try but to no avail.
Turns out the author was 99.9998% there – except for the the direction of one slash! So, rather than regurgitate the entire post, here’s the correct JavaScript segment you need:
<script type=”text/javascript”>
aspnetForm.encoding = “multipart/form-data”;
</script>
However, when all’s said and done I have to ask the question, why? Why do we have to slice up the WkTaskIP.aspx page to add this functionality in? I guess tomorrow I’ll be one the ole Dog n’ Bone to MS PSS to pursue this one further.
So, for anyone else out there with this issue, here’s a string for the search engines to chow down on to help any wayward travelers like myself get to the answer they need (at least for now!): InfoPath Forms Services File Attachment The selected file was not found