Elevating privileges uploading an image to SharePoint Online document library

Highlighted
Occasional Contributor

Hi all, I am creating a web part that allows the user to upload a photo to a document libary.  However, the user can't have permissions to the library.  To do this I've looked at using azure functions with  Azure blob storage and also the MS Graph API.  Can someone verify that they've done this using the Graph API? Basically, this means running the Graph PUT call under the context of a service account or temporary token.  If this is not possible then what do you suggest as a best practice for elevating privileges when uploading documents or images in the SharePoint Framework world? 

1 Reply
Highlighted
I think the design you are using is correct in my experience