我将如何解压缩/扩展,然后使用pnp,spfx,FilePicker将此文件对象作为附件附加到SP列表项

时间:2020-11-04 15:58:50

标签: sharepoint-online spfx

我试图使用FilePicker控件将文件作为附件保存到SharePoint列表中。用户可以单击FilePicker控件并选择一个文件。然后,该文件以状态this.state.filePickerResult

存储

它将对象置于这种状态,因此不可能仅使用:

web.lists.getByTitle("PanelMeetings").items.getById(this.state.Id).attachmentFiles.add(this.state.filePickerResult, null);

状态返回此:

enter image description here 如何使用上述方法将该对象提交到列表中?

T

0 个答案:

没有答案