Hello everyone,
I recently started working with sharepoint and am still learning how things work. I have been trying to attach a file alongside a list item programmatically to no success, similar to how one would do so through the default newitem.aspx page's ribbon. I have created a custom form using HTML and Javascript and inserted it into a content editor webpart since the default form for new items was not sufficient for my needs. I'm able to add items to the list, but can't find a way to also attach a file. Could anyone give me a hand with how this can be achieved through HTML and Javascript?
Thank you in advance.