Hei @Joilson Cerqueira Oliveira Júnior ,
Thank you for contacting Microsoft community.
If you are trying to upload to "One Drive for business" with authentication (no open to all folder) then i encourage you to visit this discussion that has the code and explanation, here
On other hand if you are trying to upload to a open Onedrive folder or a regular http share thrn there is already a discussion here
Please mark this as 'answer' if it helped