SaveAttachment

I tried using the SaveAttachment(*folder**id,* *filename*, *filecontent*) built-in function earlier.  In this case the *filecontent* was a simple text string ... less than 80 characters.  An attachment gets created just fine, but when I try to open it form the multiclip once added, I'm getting an "Invalid character in a Base-64 string." error message.  Any idea why?

 

If I write the content to a local file, and use NewAttachment() instead, everything appears to work just fine.  The only thing is I then need to do file clean-up.

Tagged: