I want to upload a file to onedrive using onedrive node.
but there is an issue with parameters. path ID and file content can not be found.
How can I find these parameters from onedrive?
To upload a file to OneDrive using the OneDrive Node.js SDK, you’ll need two things: the folder ID (where you want to upload the file) and the file content. First, to get the folder ID, use the Microsoft Graph API’s GET /me/drive/root/children endpoint to list your OneDrive folders and find the ID of the folder you want to use. Then, for the file content, use Node.js’s fs module to read the file locally. Once you have both, you can upload the file using a PUT request to the content endpoint of the file in OneDrive. Be sure you have the correct permissions (like Files.ReadWrite) and the OAuth token for authentication.