Upload files to File Control using java script

評論

2 條評論

  • 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
    評論操作 永久連結
  • 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
    評論操作 永久連結

登入寫評論。