In this post, you can learn sharing a file from your SharePoint site with anyone, which includes people from outside of your organisation. Also, it is explained how to use the editing settings, expiry of links and blocking download to control what recipients can do with the file you shared with them.
The files on your OneDrive are private until you share them. You should keep in mindt that when you share folders with Edit permissions, recipients can add the shared folders to their own OneDrive. This lets them keep the folder next to their own items and work with them as if it were their own.
Open Share OneDrive files and folders
Learn how to create a new file, upload your own, and then share it with others in a Microsoft SharePoint document library.