views:

828

answers:

4

When using a file attachment control on a InfoPath form as part of a SharePoint workflow I get the error "The selected files was not found".

+2  A: 

Found this online somewhere but can't find it again to link. You need to modify the following file:

C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\WrkTaskIP.aspx

Add:

<script type="text/javascript">aspnetForm.encoding = "multipart/form-data";</script>

into the file just before the first table opening tag. iisreset and then the attachment control of the form should work when hosted inside a workflow.

Dan Revell
A: 

Solution worked.

A: 

Fantastic! it Works!!!

A: 

when i put the script code in this file, the form say to me error... and do not work...

when i modify this file, don't work...

i need help.. sorry i dont write english, but i read very well... respond to me in english...

thanks..

Sergio
You'll need to be more specific about the error that it gives you
Dan Revell