Questions tagged [attachments]

An attachment is a computer file attached to another element.

2
votes
1answer
854 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
0answers
11 views

Getting Name of MS Teams Channel Message Attachment

I'm trying to get the name of an attachment that was sent to my MS Team Channel's email. It was posted as a message on the conversation board, which is how I've been referencing it. Right now, I have ...
0
votes
1answer
857 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
0answers
12 views

SharePoint C# move attachment and keep creation values in SP 2019

We want to copy item attachments from one Item in one site collection to another item in a different site collection using C# (Server Side Object Model). Is it possible to keep or replicate the ...
0
votes
1answer
13 views

Upload Attachment to SP List but Files either are empty or not able to open

I am trying to upload an attachment to my Sharepoint list and the upload goes well with a 200 message, however when I go to my list and try to open it, if it is a pdf will open an empty file with the ...
2
votes
3answers
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 ...
0
votes
1answer
23 views

How can I programatically move an SPListItem from a source list to a destination list (into a specific folder of the list)?

I am pretty new in SharePoint (I am working with SharePoint 2013) and I have the following problem: I have a source list(an SPList) on a source website and I have to move its items to a destination ...
1
vote
1answer
2k views

File attachement not working in sharepoint 2013

I've created a Infopath 2010 form with file attachment control as one of its fields. When I publish the form in SharePoint 2013, and fill up the form uploading a document in the attachment field, the ...
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 ...
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 ...
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 ...
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 = $...
2
votes
1answer
3k 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 ?
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?
0
votes
0answers
8 views

Getting the size of a list item attachment using _api without downloading the whole file

I am using the bearer token for authentication, therefore I need to download list item attachments like this: https://tenantname.sharepoint.com/_api/web/lists/getbytitle('...
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/...
0
votes
0answers
12 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
21k 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
747 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
700 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
704 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
798 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
805 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 ...
0
votes
1answer
31 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
53 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
17 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 ...
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
3
votes
3answers
168 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
939 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
35 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

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
23 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
179 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 ...
1
vote
1answer
173 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
67 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
642 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
173 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
83 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
333 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
269 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
27 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
174 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 ...