简体   繁体   English

为Azure Web应用设置MaxClientRequestBuffer吗?

[英]Setting MaxClientRequestBuffer for azure web app?

I want to upload a file with metadata. 我想上传带有元数据的文件。 Unfortunately packing the file into the json is out of the question. 不幸的是,将文件打包到json中是不可能的。

So, my idea to still do the upload in one call (so that it can succeed or fail atomically) is to upload the file like a normal file upload and put the metadata json into a custom header. 因此,我的想法仍然是在一个调用中执行上传(这样它就可以自动完成或失败)是像正常文件上传一样上传文件,并将元数据json放入自定义标头中。

Now, the headers can only be 16Kb per default for the IIS (MaxClientRequestBuffer). 现在,默认情况下,IIS(MaxClientRequestBuffer)的标头只能为16Kb。

Since the whole app runs on Azure, I don't have a VM with a registry. 由于整个应用程序都在Azure上运行,因此我没有带有注册表的VM。 So, is there another way to increase the request header limit? 那么,还有另一种增加请求标头限制的方法吗?

As I know, we are not able to increase the header size than 16KB in Azure WebApp Service currently. 据我所知,当前我们在Azure WebApp Service中无法将标头大小增加到超过16KB。 Even if we add the headerLimits in the webconfig setting or try to remote the Azure Website via IIS manager to set it. 即使我们在webconfig设置中添加headerLimits或尝试通过IIS管理器远程设置Azure网站,也可以对其进行设置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM