File upload issue

  • Thread starter Thread starter justinlee0516
  • Start date Start date
J

justinlee0516

Guest
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.

docs.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?

Continue reading...
 
Back
Top