I have developed a visual webpart in Sandboxed solution for SharePoint 2013/Online. I am trying to add an attachment to list item at the time of creating the item using Client Object Model. I have searched a lot over Google but I did not find the exact solution which I want.
My requirement is very simple, I just want to upload a CV to list item when career form is filled with attachment. I have referred following links:
Uploading attachments to SharePoint lists using SPServices (FileReader API used which does not work in < IE 10)
Attachment Upload using SPServices and Not the JS File APIÂ (OOB upload attach file page – First item needs to be added for then only I can upload item by giving item ID.)
Any help would be much appreciated.