© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
17 replies
cumslvt13

Background upload of an IFormFile to Azure blob storage

I have a few endpoints that are dealing with files in my app. Some of them may accept
IFormFileCollection
IFormFileCollection
or regular
IFormFile
IFormFile
. During the request hanlding content of those files is being uploaded to azure blob storage. The problem I encountered is that process of uploading to the blob storage can take 3-5 seconds. Are there any options to upload files in the background and return after persisting data to the db? As far as I understand it would be a bad practice to reference/use
IFormFile
IFormFile
after returning response the the client, so just creating a background job and passing it as a reference would not be an option
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,828Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

How to upload files to Azure Blob Storage?
C#CC# / help
3w ago
Throttle, or better, give low priority to Azure blob storage upload
C#CC# / help
10mo ago
Upload a Stream (file) to an Azure Function that uploads it to the Blob Storage
C#CC# / help
4y ago
❔ Upload large files to azure storage!
C#CC# / help
3y ago