This project has moved. For the latest updates, please go here.

AddAttachment example

Jul 23, 2010 at 10:13 PM
Can anyone provide an example on how to use the AddAttachment method in SPServices? I can't seem to find any documentation about it anywhere. Mainly, I'm wondering how you get the file contents via JavaScript (the last argument in AddAttachment function).
Jul 24, 2010 at 1:09 PM
I don't know that it's possible purely with script. If the file is accessible via http, you can grab it, but I haven't seen anyone able to grab a file from the file system with script. M.
Jul 26, 2010 at 2:41 PM

Thanks for the reply!  I had a feeling this would be the case, based on the lack of documentation.

Regardless of this, I'm still looking for an example of how to use the AddAttachment jquery call.  If anyone has an example it would be greatly appreciated :) 



Jul 26, 2010 at 4:48 PM


i opened just a new discussion with the name "Add Attachment Problem with binary File"

you will find a working example for AddAttachment. The Problem is, it working only with textfiles. Maybe with this example you find my missing part......


good luck - bernardo -