Upload files to File Control using java script

Comments

2 comments

  • Avatar
    sysberry GmbH

    Hi Vinay,

    is in the file upload in the configuration is set, that files can be downloaded and can be viewed?

    Regards

    Alexey

    0
    Comment actions Permalink
  • Avatar
    Andreas Blersch

    Hi, I have the same problem. I want to use `addFilesToFileControl`.

    But it need a object like this:

    options.value = JSON.parse('{"FileUpload1":[{"fileName":"Book1.xlsx",
                                 "fileId":"https://ap97.sharepoint.com/SharedDocuments/DocFolder/Book1.xlsx",
                                 "url":"https://ap97.sharepoint.com/SharedDocuments/DocFolder/Book1.xlsx",
                                 "size":"8716",
                                 "uploadedBy":"Demo3\\\\Administrator",
                                 "itemId":"28",
                                 "encodedURL":"https://ap97.sharepoint.com/Shared%20Documents/Book1.xlsx"}]}');

    I have the file as a base64 string. How can I add data to the file control?

    0
    Comment actions Permalink

Please sign in to leave a comment.