I have a list in Sharepoint where one can add attachments, like this:

List

The problem I have is that I don't know where exactly Sharepoint stores these attachments because I didn't have to create a column for attachments.

I want to write a webpart in Vue.js where I can either access these attachments or manually add attachments.

Does anyone know where the attachments of the list are stored?

1

Best Answer


As far as accessing them via the APIs, they are stored as part of the list item. Physically, they are stored in a SQL table.

List attachments are accessible via the various APIs including REST web service calls.

A few examples:

Get a list of attachments:

http://yourServer/yourSite/_api/web/lists/getbytitle('Tasks')/Items/GetById(7)/AttachmentFiles

Info about a single attachment:

http://yourServer/yourSite/_api/web/lists/getbytitle('Tasks')/Items/GetById(7)/AttachmentFiles('SomeDocument.docx')

You can upload, download and delete files via direct URLs and web services.