I would suggest you to first export the images from Lightroom to the hard drive of your computer, and then move the images to OneDrive.
As while exporting the images from Lightroom to Onedrive can have permissions issues, as it is a network drive.
Please let us know if it helps.
Thanks for your reply. I know this option and I use that now. But I liked exporting directly to OneDrive in Windows 8, so I regret this option is no longer available in Windows 10.
Thanks for this suggestion, I uploaded the plugin the way it was said, but the same problem still exists...
I understand now how the plugin works, but...is it a safe way to do?
Yes, it's fine. I have used it for some time without problem.