问题描述:
上传文件js,报错如下:Failed to load resource: the server responded with a status of 504 (Gateway Time-out)
问题原因:网络超时
解决办法:nginx配置 proxy_read_timeout 150;
location / {
proxy_read_timeout 150;//单位为秒
}
就是把超时时间调长一点,保证你的文件上传能完成就行。