Questions tagged [attachments]

An attachment is a computer file attached to another element.

Filter by
Sorted by
Tagged with
0
votes
1answer
40 views

Flow with SharePoint Online

I have a list where I'm running a workflow created on MS Flow. I am using "start and wait for approval action" for an approval process. But with the approval, I also want to give the feature of ...
0
votes
1answer
17 views

How to copy item attachment to another item through Rest api or JSOM?

I have a list item with attachments. I want to copy this attachment to another item using JSOM or REST API. Anyone suggest an idea to do this.
0
votes
0answers
19 views

Problem with OkAttach() in a custom form

I have a custom form in which I add attachments. When I use OkAttach() function onclick I get TypeError: l is undefined (lowercase L) The problem is in file form.js in _layouts/15 My solution ...
0
votes
0answers
27 views

File not found error JSOM Sharepoint file uplaod

The code was working perfectly and suddenly this error: "Request failed with error message - File Not Found. Stack Trace - undefined" comes out, can some please help me? onFileSelected(event) { ...
0
votes
0answers
16 views

Cannot attach a file in a custom form - “getElementById is null” error

The problem : I am editing a custom form for a list in SharePoint. When I try to click "Attach file" on the ribbon it does nothing. In console there is an error: TypeError: document....
0
votes
0answers
14 views

Multiple attachments in single email in Flow

I have a html table where the data source is from SharePoint Image library. When a user selects the checkbox the row gets selected and I want to send an email to the user with the selected row value ...
0
votes
2answers
40 views

Sending Emails with Attachments

We have a requirement to have automation of sending emails with Attachments. For example the ff. scenario: User requests for a document which user does not have access. Then some approvals happen and ...
0
votes
1answer
67 views

409 conflict error when deleting multiple attachments using PnP js or REST

I am trying to delete multiple attachments from list item as below private _deleteOneByOneAttachment(ln: string, id: any, file: any):Promise<any>{ let item = sp.web.lists.getByTitle(ln)....
0
votes
1answer
28 views

Attachments to infopath list form

i created a list, then in the ribbon went to customize in infopath. There i created a form. The form will go through a few different steps where different people will review then add an attachment. ...
0
votes
1answer
46 views

Preventing a SharePoint workflow from triggering every time I upload a new list item attachment?

I have a list in SharePoint where users can add requests, assign it to a user, and a workflow runs in the background to notify the user via email when something has been assigned to them. ...
0
votes
1answer
58 views

SharePoint list won't save attachments

SharePoint newbie here. I have created an out-of-the-box list (with no custom code) and have been happily using it. This morning when I went to create my 16th list entry, it would not allow me to save ...
0
votes
2answers
133 views

Javascript to retrieve and validate file attachments in new item form

I have a requirement to inject javascript via a script editor web part into a form and validate that it's not a macro enabled Excel file (xltm or xlsm), and throw a validation error if it is and not ...
1
vote
1answer
22 views

How do i get a mandatory attachment when a list item is of a certain value?

Hopefully someone can help. I am trying to get a SharePoint new item form to raise an error message if an attachment is not included when a certain choice is selected in a drop down menu. I have the ...
1
vote
1answer
45 views

Enabling an attachments field when creating an event in SharePoint Online?

I have my site configured with a basic out of the box events app, where the user can click 'add event' and fill in the details of it. When filling in this info, I want the user to be able to attach ...
0
votes
0answers
19 views

Multiple Attachments

I am creating a SharePoint list gathering travel information from users. This will require adding multiple attachments to be submitted. Is there a way to add all the attachments in one upload? ...
2
votes
1answer
82 views

Flow sending mail attachment with bad encoding

When I send an e-mail attachment with flow, the files get corrupted. I guess it is sending in wrong encoding. The original file looks like: The file received in the e-mail looks like: I have tried ...
0
votes
0answers
64 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 ...
1
vote
0answers
16 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
77 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 ...
0
votes
1answer
29 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 ...
0
votes
0answers
96 views

Get multiple attachments from SharePoint list using pnp.js

I want to get all the added attachments from the SharePoint list using pnp.js and show those attachments in to a custom page div. I have to use pnp.js to get the attachments. Could you please help ...
0
votes
0answers
10 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('...
0
votes
0answers
14 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.
0
votes
1answer
22 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:...
0
votes
1answer
36 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 ...
0
votes
0answers
20 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 ...
4
votes
3answers
485 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 = $...
1
vote
0answers
54 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
0answers
79 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....
1
vote
1answer
33 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
408 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
0answers
163 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
415 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
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
2k 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
452 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
141 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
608 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("...
0
votes
1answer
29 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
28 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 ...
0
votes
2answers
276 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 ...
1
vote
1answer
30 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
328 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
370 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. ...
2
votes
1answer
4k 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 ?
0
votes
1answer
30 views

Form Library InfoPath Document Template - Is there a way to digitally sign the form, plus any documents attached to the form?

I have a form library with a template created through InfoPath. The template allows users to attach additional documents to it. For audit purposes, each "page" (form + each attachment) needs to ...
0
votes
1answer
46 views

Attachments bypassing approval system

We have a custom list which is being used for management of controlled documents. There are several document types with associated InfoPath forms and file attachments enabled. We are using the basic ...
0
votes
1answer
18 views

Turning off list attachments deletes all existing attachments--Can I recover any of these files?

Turning off a list's attachments deletes all existing attachments--Can I recover any of these files after turning off the attachments feature? They don't seem to go to the recycle bin when you turn ...
2
votes
2answers
914 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 ...
3
votes
2answers
685 views

Remove the option to delete attachment on Edit Form

I'm wondering if it is possible to remove the "Delete" hypertext on the Edit Form whenever attachments are added. I've tried to use the JavaScript String replace() method to no luck, I've attached the ...