Hello All, This is first part of the series of "Programatically Upload Multiple File in SharePoint List" This is two part series, At first part I will show you a method through which you can implement Multiple file attachment. In Part 1, I will show you Design Related concept while in Part II will show development and coding related stuffs. Go To PART 1 Go To PART 2 There are two things we need to consider before implementation. 1. Attachment of files at client side 2. Upload files Attachment should be more than one at a time at client side and then we should finally Upload all attached files. SharePoint by default provides a JavaScript File through which we can implement Multiple file attachment feature. FORM.JS file provides method through which you can attach multiple file at a time. using FORM.JS File Before using FORM.JS File we need to digg something about it. FORM.JS file is located in TEMPLATE\1033 Folder. so, Below is the structure of the Attachment Form and Flow. Clicking the “Attach File” link at the top of the form calls a JavaScript function UploadAttachment() . It hides Part1 section and show partAttachment section.
Select a file for attachment and click OK. But Wait... these files are actually not uploaded, they are only attached. SharePoint uses a variable called “FileUploadIndex” which it uses to keep track of how many attachments are present. The ID for each files becomes “fileupload” concatenated with the current “FileUploadIndex” . fileID=FileuploadString+FileUploadIndex When you click the OK button it calls the “OKAttach()” function that performs the following tasks: