chakri reddy

chakri reddy

  • NA
  • 378
  • 5.6k

Saving Files with the OneDrive File Picker JavaScript SDK us

Jul 24 2019 6:04 AM
Hi Team,
 
As per the below OneDrive File Picker JavaScript SDK Saving Files document, we should send the sourceInputElementId to the request to upload the files into OneDrive. But in our scenario, the user will not select the files explicitly. The program itself will create few files and need to export them into OneDrive. In this case, we don't require File input control in the UI. What option will work for us to export the program generated files into OneDrive by using JavaScript SDK?
https://docs.microsoft.com/en-us/onedrive/developer/controls/file-pickers/js-v72/save-file?view=odsp-graph-online
 
Another question is, what is the use of sourceUri property?
 
Please help us to fix the file upload issue asap. Thanks in advance.
 
Regards,
Chakradhar