Nishand's Blog

Welcome to my personal blog, All the information in this bogs is my ideas,findings and thoughts on .Net, Asp.Net and SharePoint.
ALL POSTING ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND

The InfoPath form's 'Attachment control doesn't work with SharePoint Workflow forms.

When we use InfoPath form as a workflow form with an attachment control, on selecting a file says that “The selected files was not found”.This seems to be a small bug:) in the product.

Note: It's not advisable or supportable to customize out of box files (comes with the SharePoint installation). There is a possibility that these files be overwritten in a future service pack, thus losing your changes.

 

Work-around:

a.    Locate the ASPX page that your workflow form opens up in the _layouts directory on your server.

e.g., %Program Files%Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\LAYOUTS  

 b.   In this aspx page, locate the reference to MasterPageFile. This will look something like

MasterPageFile="~/_layouts/application.master"

c.    Now open the masterpagefile that you found above in notepad and locate the form tag.

d.    Add the attribute enctype="multipart/form-data"  to this tag and save.

e.    iisreset and try your workflow with file attachment again.

 

Hope this works!!!

Published Monday, May 21, 2007 12:59 AM by nishandv

Comments

 

burnett said:

hi Nishand

i try to modify the application.master file in LAYOUT folder  as you says,but ERROR happened. i think MOSS has some protected ways to defence user to modify it's file without premission。

August 31, 2007 6:47 AM
Anonymous comments are disabled

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Microsoft
Page view tracker