Forum Discussion
harishpatil
May 25, 2023Brass Contributor
How to get Attachments and append to Browse button using SharePoint, SPFX and ReactJS
Hi Team,
I am trying below code to get the attachments from items but getting error.
How to get attachments from item? Is there any other way to get attachments?
Code:
const attachment: IAttachmentInfo[] = await data.attachmentFiles.getByName("All RITMS.txt")();
console.log(attachment);
Error: read properties of undefined (reading 'getByName') (anonymous) @ FccRequestTraings
Thanks,
Harish Patil
No RepliesBe the first to reply