'Uploading CSV to sharepoint issue

I'm uploading a .csv to a sharepoint , but I get the following info in the file created in the sharepoint. here is the .csv before a upload it, and after . for some reason I get extra Data. enter image description here

I'm using the following endpoint

https://graph.microsoft.com/v1.0/sites/{site_id}/drive/root:/{folder}/report_2022_05_04_16_05_15_564.csv:/content

its a PUT resquest. I'm using postman

this only happpens with .CSV files. i don't have this problem when I upload a .pdf file. any suggestions?



Solution 1:[1]

You can try following url to upload files smaller than 4 mb to sharepoint

PUT /sites/{site-id}/drive/items/{parent-id}:/{filename}:/content

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 RaytheonXie-MSFT