File upload issue in Azure App service

Justin Lee 1 Reputation point
2020-06-30T01:41:05.53+00:00

Hello

I am developing an ASP.Net core app which is running in Azure App service (on Linux in Docker container).
As a large file needs to be uploaded, I followed the instruction in the following website.
https://learn.microsoft.com/en-us/aspnet/core/mvc/models/file-uploads?view=aspnetcore-3.1#upload-large-files-with-streaming

The attribute [DisableFormValueModelBinding] was added to begin to process the file as soon as it begins to be transferred.
It works as expected on my development machine (Mac, Windows, Linux, and Docker in Linux) - the controller action is triggered as soon as a file begins to be transferred.
But in Azure App service, the controller action is triggered only after the whole file is transferred.

I tested so many times with small files and large files, but this is consistent.
In Azure App service, the controller action is triggered only after the whole file is transferred, while it is triggered before file transfer is completed on my development PCs.

I am stuck with this issue. No information cannot be found regarding this issue.
Can somebody help me, please?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,378 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Michał Wójcik 6 Reputation points
    2021-01-26T22:10:37.587+00:00

    I got the same issue, and it only appears in the Linux environment on Azure App Service. Do you know how to resolve this?

    1 person found this answer helpful.
    0 comments No comments