Sharepoint NewForm adding attachments programatically
- by CodeSpeaker
I have a list with a custom form which contains a custom file upload control.
As soon as the user selects a file and clicks upload, i want this file to go directly to the attachments list within that listitem.
However, when adding the file to SPContext.Current.ListItem.Attachments on a new item, the attachment wont show up in the list after…