I have a custom list on sharepointonline, and I have attached a file (myfile.txt) to an item (itemid=5). How can I download this attachment?
I am able download the file with this button:
<a type="button" href={'https://mydomain/Lists/Announcements/Attachments/'+this.state.ItemId+'/myfile.txt'} className="btn btn-info" download>Download Attachment</a>
I am able to get ItemId with the REST API, but there is no name of attachment files. The only question here is: How do I get the attachment file names like other columns 'Title', 'Created'? I expect 'AttachmentName', but none ofc.