none
File upload issue RRS feed

  • Question

  • 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?

    • Moved by CoolDadTx Tuesday, June 30, 2020 1:09 PM ASP.NET related
    Tuesday, June 30, 2020 1:25 AM

All replies

  • Hi justinlee0516,

    Thank you for posting here.

    Since this thread is related to Azure App Service, so I suggest that you can ask this question in Microsoft Q&A.

    The Visual C# forum discusses and asks questions about the C# programming language, IDE, libraries, samples, and tools.

    Best Regards,

    Timon


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, June 30, 2020 3:14 AM