OPEN TO WORK

Available for new opportunities! Let's build something amazing together.

Blog

Parse multipart/form-data in Azure Function

While working on an internal Azure Static Web Site project, I needed to upload CSV files to an Azure Function to import data to Cosmos DB. When uploading a file to your API, the multipart/form-data content-type is used. The body’s format looks a bit “special” as it requires some parsing to get each file. 1-----WebKitFormBoundaryXvnFih9Jfw9ZdQNB2Content-Disposition: form-data; name': '"file"; filename="2020-9-2-localization.csv"3Content-Type: text/csv4 5id,name6test1,test17test2,test28------WebKitFormBoundaryXvnFih9Jfw9ZdQNB-- Similar like the

Read article

Elio Struyf

Solutions Architect & Developer Expert

Loading...

Let's build together

Manage content in VS Code

Present from VS Code