1

My code -

sp.web
      .getFolderByServerRelativeUrl("Student%20Details%20No%20Content%20Type")
      .files.add(fileContent.name, fileContent, true)
      .then(f => {
        f.file.getItem().then(item => {
          item.update({
            Title: "A Title",
            Description: "My Other Value"
          });
        });
      });

Type :

Choice
Site Content type 

How to upload document with metadata .. like Choice and Site Content Type .

  • were you able to resolve this? I need to upload files along with data of a taxonomy and people field – zainul Mar 12 at 12:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.