PhysicalFileProvider GetDirectoryContents在Azure上的30mb +文件上有奇怪的行为 [英] PhysicalFileProvider GetDirectoryContents has weird behaviour on 30mb+ files on Azure
本文介绍了PhysicalFileProvider GetDirectoryContents在Azure上的30mb +文件上有奇怪的行为的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在网络应用中使用.net core 2.2,发现这个奇怪的问题,方法
GetDirectoryContents 在 PhysicalFileProvider 。
在delevelopement(本地计算机)中,一切都按预期工作,但是当部署到Azure时,对此方法的调用只会在第一次调用时或者在创建或删除文件之后(正确的任何文件都可以使用)
请求文件夹中的大小),在之后的所有调用中,该方法只返回较小的文件(少于aprox 30mb),直到下次删除或创建该文件夹中的文件为止!
推荐答案
感谢您提出问题!您可以尝试将值允许的最大内容长度修改为您的web.config文件。
你可以参考这个链接
https://blogs.msdn.microsoft.com/azureossds/2016/06/15/uploading-large-files-to-azure-web-apps / 。让我知道它是否有效。
You may refer this link https://blogs.msdn.microsoft.com/azureossds/2016/06/15/uploading-large-files-to-azure-web-apps/ . Let me know if it works.
这篇关于PhysicalFileProvider GetDirectoryContents在Azure上的30mb +文件上有奇怪的行为的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文