2

Is there a limitation for the attachments that can be added over a custom list against each item in SP2013 online?

If not, am I stuck over a scenario where I need to add more than 2 different files against each list item?

7
  • these files will always be the same? where are you storing these files? Commented Sep 9, 2015 at 7:50
  • I want to save that as an attachment for list items . Commented Sep 9, 2015 at 14:22
  • Is that using rest API i can be able to add attachments to listItem? Commented Sep 9, 2015 at 14:22
  • Yes, you can use rest api..but you didn't answer my question..where are the files you want to attach located? Commented Sep 9, 2015 at 14:24
  • It needs to be associates with the custom list item. Commented Sep 9, 2015 at 14:25

3 Answers 3

0

Check this blog.

I made the same code in three different projects and it worked perfectly.

You will need a jQuery.Multifile library to follow the example.

0

There probably is no limit:

Sharepoint List Item Attachment Limitation

But adding attachments via javascript might be tricky. I tried that once and had to use powershell instead.

6
  • Ok , its highly considerable that list items not having any limit for adding attachments to it. But how to add it , and identify those attachments using javascript. Commented Sep 9, 2015 at 8:34
  • As far as I know, you cannot add attachments via javascript Commented Sep 9, 2015 at 8:35
  • I am calling its OOB feature for uploading the file to list in my js code using SP dialog URl- "siteUrl+"/_layouts/Attachfile.aspx?ListId={" + ListId+ "}&ItemId=" + itemId; It is working for single attachments, and looking forward to perform the same for multiple items. " Commented Sep 9, 2015 at 8:37
  • So you open a dialogue? I thought you tried to do this automatically Commented Sep 9, 2015 at 8:39
  • Yes @Nils its opening OOB dialog for uploading the attachments, and it associate it with the list . Commented Sep 9, 2015 at 8:40
0

Please take a ref from the below link.

Just need to modify the html as per the requirement . Link

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.