2

Is it possible to add an attachment to a form library?

I tried publishing a form that has an attachment control but getting "The selected field cannot be promoted because its data type is not supported: base64binary"

Please suggest.

2
  • Are you getting a specific error? Commented Jul 30, 2012 at 19:43
  • Yes. The selected field cannot be promoted because its data type is not supported: base64binary
    – Robin Li
    Commented Jul 30, 2012 at 19:55

2 Answers 2

2

No, it is not possible - you will have to store (add/remove) the attachements in a different document library. You'll have to do the adding/removing yourself - either with custom code (in your InfoPath Form or better in a custom WebService) or OOTB WebServices.

Here is a good article about the Top 10 Questions about InfoPath File Attachements. See Point Nr. 5 for uploading to different document libraries.

1

See:

http://social.technet.microsoft.com/Forums/da/sharepoint2010customization/thread/c74939ee-44d4-41ac-ac89-5a4b053fe110

http://www.infopathdev.com/forums/p/10912/38828.aspx

It appears Base64Binary is not allowed as a promoted property. You need to write custom code to upload the file to the Document Library instead of as an attachment control.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.