Upload files to File Control using java script
I am trying to dynamically upload a file to a shared folder by File Control using Javascript.
Using Method : addFilesToFileControl but its not showing up any files on the form.
Any help on this would be appreciated.
Thanks in advanced
-
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?
請登入寫評論。
評論
2 條評論