Timeline for SharePoint 2013 REST API create list item with attachments javascript
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 15, 2020 at 14:01 | comment | added | Paul Vu | What are the lines "var bytes = new Uint8Array(buffer);" and "var content = new SP.Base64EncodedByteArray();" for? | |
Jun 29, 2018 at 15:05 | vote | accept | salah9 | ||
Dec 25, 2017 at 8:35 | comment | added | Jerry | For multiple upload attachments call, you can refer the demo below: c-sharpcorner.com/article/… | |
Dec 25, 2017 at 2:57 | comment | added | salah9 | Thanks for sharing that piece of knowledge. But is there any way to make single call and upload all attachments together?. In the above code, If user is attaching 5 files to an item, then we are making total number of 6 calls to user. I am looking for a solution were first call is made create item and second call is made to upload all attachment.s | |
Dec 24, 2017 at 3:00 | comment | added | little_big_thoughts | You cannot upload attachments for new item in a single REST call. Because uploading attachment needs item ID for the new item it does not exist until the item is created. So, Technically we can only start upload attachment on the success method of item create call... | |
Dec 23, 2017 at 17:51 | comment | added | salah9 | I almost did the same way. But my main aim is not to make two HTTP call. I want to create item and upload attachments in one REST API call itself. | |
Dec 23, 2017 at 6:51 | history | answered | Sunil Sahu | CC BY-SA 3.0 |