C#C
C#4y ago
malkav

Upload a Stream (file) to an Azure Function that uploads it to the Blob Storage

Say I wanted to upload a file from a Static Web App, so I get the file as a Stream and toss it towards an Azure function that handles the blob storage and returns a URL string.

How would I get the file into the Azure function?

I did req.Form.Files[0] now, and that worked in a test environment, but in tandem with the website I'm making I'm supposed to give a req.Body to this Azure function right?
So how would I approach this?
I've got the connection to the blob storage, and the actual upload and retrieve url sorted. It's just how to get the file from a web-page to an azure function
Was this page helpful?