Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
The results are in! See what nearly 90,000 developers picked as their most loved, dreaded, and desired coding languages and more in the 2019 Developer Survey.

Questions tagged [attachments]

An attachment is a computer file attached to another element.

0
votes
0answers
8 views

MS Flow - Word file in attachment

I need some help with my flow. I want to add MS Word file in attachment of letter. How can I do that? By default I can add only .txt file in attachment of email. Thanks for attention.
5
votes
1answer
2k views

How to upload an attachment to a list item using Microsoft.SharePoint.Client?

I am trying to create a new list item with an attachment. Below is my code: using (var clientContext = new ClientContext(_sharepointSiteURL)) { clientContext.Credentials = _credentials; var ...
6
votes
7answers
20k views

get the attachement files from REST API

I use REST API SharePoint 2013 to get the items from list: And and I want to get the Attachments Files, How can i do that? This the code : function getListItems(url, listname, query, complete, ...
2
votes
2answers
690 views

SharePoint 2013 - Attach file to custom list using drag and drop

In Sharepoint 2013, is it possible to drag and drop a file (.jpg , .pdf, .png) to a custom list as an attachment? If so, can this be achieved by using a script (JS, jquery)? So, if a user is reporting ...
0
votes
1answer
20 views

Creating a URL link with href not going to the URL

We have a page that is using AngularJS. I am creating a link: <div ng-if="breakout.AttachmentFiles"> <div ng-repeat="file in breakout.AttachmentFiles" style="display: flex; align-items:...
1
vote
2answers
677 views

REST endpoint working in SharePoint online and not in on premise

/_api/web/lists/getbytitle('List')/items?$select=Id,AttachmentFiles&$expand=AttachmentFiles The above REST endpoint works in SharePoint online and we are able to fetch attachments but the same ...
0
votes
1answer
699 views

List Item Attachment Folder Hierarchy

Looking to implement a default folder structure for attachments to custom list items. I haven't really seen anything that would indicate that list item attachments can be organized like this out of ...
0
votes
1answer
756 views

Allow a SharePoint document to be displayed in a frame

I have a SharePoint list with attachment, I want to display these attachment in a Frame for preview but I get this error: This content cannot be displayed in a frame To help protect the security of ...
1
vote
1answer
750 views

Copying Attachments from One List to Another

I am currently using the Create an Item action in SharePoint Designer 2013 to bring over several fields of information from my main list to another. Is it possible to copy over the attachment ...
1
vote
1answer
807 views

Sharepoint 2013 won't save attachments added in edit screen

I've got a list that is using custom forms for new items and edit. Customization moved screen elements around, but the Attachments part of the forms is pretty much stock. If I edit an item, and ...
0
votes
1answer
27 views

How to allow access to list item file attachments that was not created by the user with special constraints

I am struggling for some time with this problem and can't decide how to handle it. We have a sharepoint list with 3 groups of users: SOHO Account Managers SMB Account Managers ENT Account Managers ...
1
vote
0answers
33 views

Cannot upload attachment to SharePoint list item using JavaScript

I am trying to upload the email attachment to SharePoint list item using JavaScript. But I landed up on the following error on the console. Cannot rename "_120" to "120": destination already exists....
0
votes
0answers
16 views

Allow user to complete a form & attach document

I have a sharepoint, which is a repository of project document templates, which are blank. The idea is that when people use one of the templates and fill it in for their project, they can submit it ...
0
votes
1answer
823 views

Copying list items's attachments

I have to modify a .Net console application written in C#. The application references the following assemblies : Microsoft.SharePoint Microsoft.SharePoint.Client Microsoft.SharePoint.Client.Runtime ...
1
vote
2answers
4k views

Sharepoint 2013 delete AttachmentFiles by JS

how can I delete an AttachmentFiles of a list item by Javascript? (with REST or using SP.RequestExecutor) Thank,Nk
2
votes
3answers
82 views

Copy attachments from list to another list

In this script, i want to to copy an item from list to another list. This item contain an attachments. How i can add the attachments to my code $web = Get-SPWeb http://intranet/sales/ $listSales = $...
0
votes
1answer
884 views

Attaching a file to a list item using CSOM

I'm attempting to use a console application to attach a file to a list item I have created in code. Here's what I have: var attachmentInfo = new AttachmentCreationInformation(); // ...
1
vote
0answers
24 views

Require Attachments Issue on List with Enhanced Rich Text Items

We migrated a site from 2010 Foundation to Online with a list that has multiple enhanced rich text items. Also on the NewForm.aspx is the following script that validates for attachments on the list......
1
vote
3answers
2k views

Drag attachments from outlook to sharepoint?

Does Sharepoint have any integration with Outlook where I can simply drag and drop e-mail attachments in to a Sharepoint library? It looks like "Harmon.ie" does it but the company is unwilling to ...
0
votes
1answer
1k views

Multiple Attachment fields on an Infopath form

I'm setting up a Infopath form which has a number of different views. On each view I need to ability to add a different attachment to each view, but every time I put the field in a view it duplicates ...
0
votes
1answer
1k views

Show attachment names as a coloumn in Sharepoint list - 2007

Is there a way I can show attachment names as a 'Title' field in SharePoint list 2007? I'm wanting to save duplication having to type out the name of a file to show as the title in the list. I've ...
0
votes
2answers
1k views

Add attachments to Picture Library images?

Is there any way to add attachments directly to items in a Picture Library? (or display items with attachments in a list of image thumbnails, similar to a Picture Library?) I've seen this about ...
0
votes
1answer
1k views

Cannot delete attachment from a list item from a sharepoint online app

I get a success message after running the following code displayed below. However, when I go and verify the list item the file is still there. If I try the client side of this code, the file gets ...
1
vote
1answer
1k views

how to attach document in custom list for sharepoint online using Powershell?

I have tried this code to attach a document in custom list for sharepoint online, but it is not working. $site = [Microsoft.SharePoint.SPSite]("Your site name") $web = $site.OpenWeb() $list = $...
3
votes
1answer
2k views

Drag & Drop Attachment to List

I am using SPO. I would like to be able to drag and drop a document file (.pdf etc) to a new list item when using the New Item Form, rather than utilising the attach button from the ribbon and needing ...
1
vote
2answers
2k views

downloading attachments in SharePoint 2013 list

I can't download any attachments from the list or library in SharePoint 2013. Even I can't see the attachments. I only see the paperclips. What should I do?
2
votes
1answer
2k views

Automatically add attachment to new list item

is there any way to automatically add an attachment stored on the SP server to the new list item? I enter the URL of the file and this file will be stored after adding an item in lists/list_name/...
1
vote
1answer
19 views

Require attached file with column choice selection before saving record

I have a custom list in SP13 with a choice column containing 'Yes', 'No', and 'NA' drop down values. If the column value is marked 'Yes', I want to require the user to attach a related file to the ...
0
votes
1answer
123 views

Multiple attachment upload causing 409 conflict error. (SPFX, PNP)

I have noticed a bug when using the PnP library for SPFX to upload multiple attachments. Using: sp-pnp-js@3.0.10 targeting: SharePoint Online Expected Behavior Question When uploaded multiple ...
2
votes
2answers
2k views

Add multiple attachments over custom list item using javascript

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 ...
1
vote
1answer
76 views

Attach File to Document Set via REST

Is there a way to upload files using Sharepoint REST API to my created Document Set? Document Set: Inside "Test" woud be: I can upload files via browser but how do I do it via REST?
1
vote
0answers
40 views

Invalid file error

I get the following error when trying to upload a PDF file to a SharePoint list. File is less than 20MB. Have previously been able to upload these files. Still able to upload some PDF files but not ...
1
vote
1answer
26 views

Programattically Imposing Size and Type Restriction on a List Attachment

I'm using the code below to allow users to upload files as attachments to items in a SharePoint (2010) List. How can I add type and size restrictions to the attachment, for example, if I wanted the ...
0
votes
1answer
357 views

add attachments with javascript on item edit

I'm using SP Online. I have the following code to update a list item. I added this code in a script editor inside EditForm.aspx. It works fine and I'm able to update several fields, but If user adds ...
0
votes
1answer
3k views

Open attachments in new tab issue

I am trying to open list item attachments in a new tab (when user clicks on an attachment in display form) I am using this piece of jQuery/javascript in my custom display form to do that: $(document)...
0
votes
1answer
97 views

Add an Attachments section to a discussion board form

I have a discussion board and I want the users to have the ability to add attachments to their post. I know that this can be done through the ribbon but I was looking for a way to put it into the form ...
0
votes
1answer
67 views

Questions about List items' Attachments. Can we link them with custom columns + Can we allow them to appear on search [duplicate]

I am working on a online sharepoint site collection, and i have attached files to custom list items, as follow:- But i have the following questions:- can i link the attachment with cusotm columns? ...
-1
votes
2answers
258 views

Send Attach file sharepoint 2013 list with web Part C#

i want to add attachment file Sharepoint 2013 library but it doesnt work. here is my code protected void Button1_Click(object sender, EventArgs e) { using (SPSite oSPsite = new SPSite("...
2
votes
1answer
254 views

How to check adding all attachments in list item

I know that in SharePoint Designer workflow it can be checked when attachments are added, but this isn't so super, because when there is some attachment in the list item and someone forgot to add ...
0
votes
1answer
25 views

Opening attachments

When attaching documents using their link to sharepoint, they only seem to open in a browser then you have to open them in the application separately. Is there a way to directly open links to ...
0
votes
1answer
26 views

Need Help setting Rule for field to require Attachment before allowing a selection from a drop down,

I have a form field which has 3 different selections in the drop down, In Progress.. On Hold.. and Completed. Since the form is opened many times before marked complete, I do not need a code that ...
4
votes
2answers
4k views

Add Attachment File Button in Library Form Sharepoint 2013

I want to add Attachment File Button (like attachment in email / Browse button before upload something file) in Library Form Sharepoint 2013. So, when I fill that form, I could attach some files.
0
votes
2answers
153 views

How to add attachment in SharePoint list using SharePoint Hosted App

I am working on a SharePoint Hosted app in JSOM, where a user enters his expenses with attachment. I have no Idea how to upload attachment and add it into a SharePoint List. I have created that ...
0
votes
0answers
27 views

Change an attachments displayed filename with title

I have the following code. <xsl:element name="SharePoint:AttachmentsField"> <xsl:attribute name="runat">server</xsl:attribute> <xsl:attribute name="FieldName">...
1
vote
1answer
27 views

Attaching files to items in lists

I am creating multiple lists in SharePoint that use each other for "lookup" columns. Here is the situation and what I am doing. It is a very expansive inventory list of Equipment Racks. I have ...
0
votes
1answer
171 views

Multiple attachment buttons (not unique fields) in custom form

I'm building a custom form with branching logic - basically if they tick box A they need to upload form A, and if they tick box B they need to upload form B. I know you can attach multiple documents ...
5
votes
2answers
238 views

Sharepoint not saving attachment on EditForm.aspx

I'm customizing the default EditForm.aspx of a list in Sharepoint with Javascript directly on a Script Editor content webpart on the page. One item that I have customized is the Save Button event. ...
0
votes
0answers
53 views

issue with the attachment control - reload and clear the form

I have a SharePoint2013 "Document Library" modified in InfoPath. It has many attachment controls based on the selection. Some users faced an issue with the attachment. after filling the form and ...
0
votes
0answers
50 views

How to use the default attachment in infopath 2013?

When I create a list on SharePoint Online, and open it in infopath 2013, I have an attachment like this : And then, I can add several attachments, suppress them, and if I'm in readonly, I can't ...
1
vote
1answer
2k views

SPFX: How to add item in SharePoint list with attachment?

I have created a SPFX webpart to add item in list with attachment. How to add item with attachment ?