国产+高潮+在线,国产 av 仑乱内谢,www国产亚洲精品久久,51国产偷自视频区视频,成人午夜精品网站在线观看

上傳文件時(shí)出現(xiàn)404

bbfox

問(wèn)題描述

當(dāng)上傳文件時(shí),有些文件上傳正確,有些文件會(huì)出現(xiàn)404
一般100K以內(nèi)的文件都能正常上傳,較大的文件一定會(huì)出現(xiàn)404,但這些文件大小都在webman及php上傳大小的設(shè)置范圍內(nèi)。有些文本文件有10多M,但上傳正常,有些文件如pdf只有幾百K卻出現(xiàn)404。
一直找不出原因

程序代碼或配置

////view文件
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="/favicon.ico"/>
<title></title>

</head>
<body>

<form method="post" action="http://127.0.0.1/myService/uploadFiles3" enctype="multipart/form-data" />
<input name="file1" multiple="multiple" type="file">
<input name="file2" multiple="multiple" type="file">
<input type="submit">
</form>
</body>
</html>

/////////控制文件
<?php
namespace app\controller;
use support\Request;
class myServiceController
{

public function uploadFiles3(Request $request)
{

    return "true";

}

}

重現(xiàn)問(wèn)題的步驟

1.在view頁(yè)面選擇上傳的文件
2.點(diǎn)擊“上傳”

操作系統(tǒng)環(huán)境及workerman/webman等具體版本

linux+webman1.5.6+php8.3

778 1 0
1個(gè)回答

walkor 打賞

可能服務(wù)器運(yùn)行了多個(gè)webman,有些請(qǐng)求到?jīng)]有這個(gè)控制器的webman里了,linux執(zhí)行 ps auxf 查看是否運(yùn)行了多個(gè)webman

還有看下404是否是webman返回的,webman返回的404一般包含webman關(guān)鍵字。如果沒(méi)有,則可能是nginx問(wèn)題,請(qǐng)求都沒(méi)到webman這里。

  • 暫無(wú)評(píng)論
??