当前位置:网站首页>上传文件提示 413 Request Entity Too Large 错误
上传文件提示 413 Request Entity Too Large 错误
2022-06-22 05:51:00 【初夏0811】
写了一个文件上传接口,在本地上传没问题,一到服务器就报HTTP 413错误,排除了代码有问题,后台打断点后发现不是接口的问题,上网查了一下HTTP 413错误,(request entity too large),是HTTP协议状态码的一种,表示“请求实体过大”。当因请求的实体过大,超出服务器的处理能力,导致服务器无法处理请求时就会返回此错误代码,一般在上传文件时可能会出现此错误。
既然是上传文件大小的设置问题,那么修改配置文件就好了,用的nginx服务器,解决方法如下:
修改nginx.conf的值就可以解决了。
client_max_body_size:10M
边栏推荐
- Vulkan pre rotation processing equipment direction
- TCP连接细节问题
- Matlab system identification
- 402-字符串(题目:剑指Offer58-II.左旋转字符串、 28. 实现 strStr()、459.重复的子字符串)
- R语言观察日志(part24)--writexl包
- 论文实验记录(part1)--Detection ofnatural clusters via S-DBSCAN a Self-tuning version of DBSCAN
- 线性回归:最小二乘、泰尔森估计、RANSAC
- MATLAB系统辨识
- 生信可视化(part1)--柱状图
- Frame profiling
猜你喜欢

DataBricks从开源到商业化踩过的坑

Write optimized DSP code for cortex-m4

Adaboost

Conversion between gray code and binary

EMC的解决

401 string (344. reverse string, 541. reverse string II, Title: Sword finger offer 05. replace spaces, 151. reverse words in string)

Single cell literature learning (Part2) -- stplus: a reference based method for the exact enhancement of St

idea插件Easy Code的简单使用

触 发 器

单细胞论文记录(part11)--ClusterMap for multi-scale clustering analysis of spatial gene expression
随机推荐
小熊派BearPi-HM Micro正式合入OpenHarmony主干
DOS bat syntax record I
U disk as startup disk to reinstall win10 system (no other software required)
Vulkan 预旋转处理设备方向
W800芯片平台进入OpenHarmony主干
C指針的理解
Le contrôle MFC tabctrl modifie la taille de l'étiquette
雷达导引头伺服系统的建模与仿真
pgsql批量插入
PID notes
Test platform for combinational logic blocks
Beifeng helps Nanchang Emergency Management Bureau to build a public-private integrated emergency communication guarantee network
Frame profiling
Case analysis of terminal data leakage prevention
生信可视化(part3)--小提琴图
EMC的解决
Server PHP related web page development environment construction
五大常考SQL面试题
Simple use of idea plug-in easy code
Unity encrypts ASE game data