OfficeDev / OfficeDev/office-js
Add addFileAttachmentAsModernAttachmentAsync and addFileAttachmentAsModernAttachmentFromBase64Async feature
@exextoc is already working on this.
Since Feb 26, 2024.
- Dominant language
- JavaScript
- Stars
- 845
- Forks
- 124
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 1
Description
Hi!
It is not possible to programmatically add a file as a sharing link in OneDrive or SharePoint.
You can do this from the web or even using VSTO (adding the method 7).
I think there should be one function like addFileAttachmentAsModernAttachmentAsync that would basically take 2 parameters:
The original URL in the web
The sharing method to use
and it should visually add the sharing link with all the options like:
The same with addFileAttachmentAsModernAttachmentFromBase64Async. It should take 2 parameters:
The base64 string without any size restriction
The sharing method to use
The functions should do the sharing (with the sharing method like AnyoneCanView or the new "AnyoneCanViewWithPassword") and add the sharing link.
Thanks
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.