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?

  • these files will always be the same? where are you storing these files? – Taran Goel Sep 9 '15 at 7:50
  • I want to save that as an attachment for list items . – user27178 Sep 9 '15 at 14:22
  • Is that using rest API i can be able to add attachments to listItem? – user27178 Sep 9 '15 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? – Taran Goel Sep 9 '15 at 14:24
  • It needs to be associates with the custom list item. – user27178 Sep 9 '15 at 14:25
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.

  • 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. – user27178 Sep 9 '15 at 8:34
  • As far as I know, you cannot add attachments via javascript – Nils Sep 9 '15 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. " – user27178 Sep 9 '15 at 8:37
  • So you open a dialogue? I thought you tried to do this automatically – Nils Sep 9 '15 at 8:39
  • Yes @Nils its opening OOB dialog for uploading the attachments, and it associate it with the list . – user27178 Sep 9 '15 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, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.