Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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.

share|improve this question
    
Are you getting a specific error? –  RJ Cuthbertson Jul 30 '12 at 19:43
    
Yes. The selected field cannot be promoted because its data type is not supported: base64binary –  Robin Li Jul 30 '12 at 19:55

2 Answers 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.

share|improve this answer

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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