
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Upload a file on Microsoft OneDrive
Hello,
I am trying to find solutions to upload files on a Microsoft OneDrive (or Microsoft Sharepoint).
There are no Talend standard components so I am looking at Microsoft Graph API.
Using POSTMAN I successfully upload files with Microsoft Graph REST API.
I have difficulties to find a solution in talend ... with a tREST or with tSystem using Curl.
When I export my request code from Postman it looks like (I've just hidden the token (after Bearer) :
curl --location --request PUT 'https://graph.microsoft.com/v1.0/me/drive/root:/OneDriveFolder/OneDriveFileName.csv:/content' \
--header 'Authorization: Bearer *** very long token string generated by microsoft portal hidden for confidentiality reason ***' \
--header 'Content-Type: text/csv' \
--data-binary '@/C:/LocalFolder/LocalFileName.csv'
Anyone having experienced such case ?
Thanks in advance for your help.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you install and connect OneDrive on the host that is executing your Talend jobs? If so, then you are just copying "local" files. Talend doesn't know that it's cloud storage.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the idea but my PROD execution is on a unix machine ...
