SharePoint Project Series.

This is a series of blogs I am writing on SharePoint projects:

Part 1 - Design and Planning Part 2 - Implementation (Stage 1) Part 3 - Implementation (Stage 2)
Part 4 - Training Part 5 - Continued Support Part 6 - Suggested Continued Improvement

Friday, July 10, 2009

InfoPath error yet again

Well I have come across yet another InfoPath error when using web based templates in a web part.

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";

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!

No comments: