Forum Discussion

Cardinal_Night's avatar
Cardinal_Night
Brass Contributor
Jan 17, 2020
Solved

Using ListItemAttachments (pnp) - I don't know how to use it!

I need to make a file upload to an SPO list for an SPFX web part form I'm making. I've put this into my JSX:   <ListItemAttachments listId='23083058-4496-4367-9692-0c6fc430cce0' ...
  • Beau Cameron's avatar
    Jan 19, 2020

    Cardinal_Night The control works under the assumption that an item has been created already. You would need to create an item first,and pass that ID to the ListItemAttachments control.