Code example to show how to upload larger files to either SharePoint Online or OneDrive for Business document libraries using plain JavaScript and jQuery.
User account 'XXXXXXXXXXXX' from identity provider 'https://XXXXXXXXXXXXXXXXXX' does not exist in tenant 'XXXXXXXX' and cannot access the application 'XXXXXXXXXXXXXXXXXXXXXXXXX' in that tenant. The account needs to be added as an external user in the tenant first. Sign out and sign in again with a different Azure Active Directory user account.