【以下均可删除】
提问前请务必仔细阅读 如何排查故障 和 常见问题。
问题描述(报错内容):
FoF upload 插件在使用了S3后无法删除文件
报错:
`POST https://yunshi.taoisa.cn/api/fof/upload/delete/5a7729e3-309b-42bb-834f-248bce50429e
Could not delete file.上方网址内容:
{
“errors”: [
{
“status”: “405”,
“code”: “method_not_allowed”,
“detail”: “Flarum\Http\Exception\MethodNotAllowedException: GET in /www/wwwroot/yunshi.taoisa.cn/vendor/flarum/core/src/Http/Middleware/ResolveRoute.php:62\nStack trace:\n#0 /www/wwwroot/yunshi.taoisa.cn/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\ResolveRoute->process()\n#1 /www/wwwroot/yunshi.taoisa.cn/vendor/flarum/core/src/Http/Middleware/SetLocale.php(51): Laminas\Stratigility\Next->handle()\n#2 /www/wwwroot/yunshi.taoisa.cn/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\SetLocale->process()\n#3 /www/wwwroot/yunshi.taoisa.cn/vendor/flarum/core/src/Http/Middleware/AuthenticateWithHeader.php(58): Laminas\Stratigility\Next->handle()\n#4 /www/wwwroot/yunshi.taoisa.cn/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\AuthenticateWithHeader->process()\n#5 /www/wwwroot/yunshi.taoisa.cn/vendor/flarum/core/src/Http/Middleware/AuthenticateWithSession.php(31): Laminas\Stratigility\Next->handle()\n#6 /www/wwwroot/yunshi.taoisa.cn/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\AuthenticateWithSession->process()\n#7 /www/wwwroot/yunshi.taoisa.cn/vendor/flarum/core/src/Http/Middleware/RememberFromCookie.php(52): Laminas\Stratigility\Next->handle()\n#8 /www/wwwroot/yunshi.taoisa.cn/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\RememberFromCookie->process()\n#9 /www/wwwroot/yunshi.taoisa.cn/vendor/flarum/core/src/Http/Middleware/StartSession.php(61): Laminas\Stratigility\Next->handle()\n#10 /www/wwwroot/yunshi.taoisa.cn/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\StartSession->process()\n#11 /www/wwwroot/yunshi.taoisa.cn/vendor/flarum/core/src/Api/Middleware/FakeHttpMethods.php(29): Laminas\Stratigility\Next->handle()\n#12 /www/wwwroot/yunshi.taoisa.cn/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Api\Middleware\FakeHttpMethods->process()\n#13 /www/wwwroot/yunshi.taoisa.cn/vendor/flarum/core/src/Http/Middleware/ParseJsonBody.php(28): Laminas\Stratigility\Next->handle()\n#14 /www/wwwroot/yunshi.taoisa.cn/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\ParseJsonBody->process()\n#15 /www/wwwroot/yunshi.taoisa.cn/vendor/flarum/core/src/Http/Middleware/HandleErrors.php(57): Laminas\Stratigility\Next->handle()\n#16 /www/wwwroot/yunshi.taoisa.cn/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\HandleErrors->process()\n#17 /www/wwwroot/yunshi.taoisa.cn/vendor/flarum/core/src/Http/Middleware/InjectActorReference.php(25): Laminas\Stratigility\Next->handle()\n#18 /www/wwwroot/yunshi.taoisa.cn/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\InjectActorReference->process()\n#19 /www/wwwroot/yunshi.taoisa.cn/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(75): Laminas\Stratigility\Next->handle()\n#20 /www/wwwroot/yunshi.taoisa.cn/vendor/middlewares/request-handler/src/RequestHandler.php(84): Laminas\Stratigility\MiddlewarePipe->process()\n#21 /www/wwwroot/yunshi.taoisa.cn/vendor/laminas/laminas-stratigility/src/Next.php(49): Middlewares\RequestHandler->process()\n#22 /www/wwwroot/yunshi.taoisa.cn/vendor/middlewares/base-path-router/src/BasePathRouter.php(101): Laminas\Stratigility\Next->handle()\n#23 /www/wwwroot/yunshi.taoisa.cn/vendor/laminas/laminas-stratigility/src/Next.php(49): Middlewares\BasePathRouter->process()\n#24 /www/wwwroot/yunshi.taoisa.cn/vendor/laminas/laminas-stratigility/src/Middleware/OriginalMessages.php(36): Laminas\Stratigility\Next->handle()\n#25 /www/wwwroot/yunshi.taoisa.cn/vendor/laminas/laminas-stratigility/src/Next.php(49): Laminas\Stratigility\Middleware\OriginalMessages->process()\n#26 /www/wwwroot/yunshi.taoisa.cn/vendor/middlewares/base-path/src/BasePath.php(73): Laminas\Stratigility\Next->handle()\n#27 /www/wwwroot/yunshi.taoisa.cn/vendor/laminas/laminas-stratigility/src/Next.php(49): Middlewares\BasePath->process()\n#28 /www/wwwroot/yunshi.taoisa.cn/vendor/flarum/core/src/Http/Middleware/ProcessIp.php(24): Laminas\Stratigility\Next->handle()\n#29 /www/wwwroot/yunshi.taoisa.cn/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\ProcessIp->process()\n#30 /www/wwwroot/yunshi.taoisa.cn/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(75): Laminas\Stratigility\Next->handle()\n#31 /www/wwwroot/yunshi.taoisa.cn/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(64): Laminas\Stratigility\MiddlewarePipe->process()\n#32 /www/wwwroot/yunshi.taoisa.cn/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php(73): Laminas\Stratigility\MiddlewarePipe->handle()\n#33 /www/wwwroot/yunshi.taoisa.cn/vendor/flarum/core/src/Http/Server.php(45): Laminas\HttpHandlerRunner\RequestHandlerRunner->run()\n#34 /www/wwwroot/yunshi.taoisa.cn/public/index.php(26): Flarum\Http\Server->listen()\n#35 {main}”
}
]
}`
logs报错:
https://mclo.gs/xJJx5wA
已尝试的解决办法(演示网址或图片):
s3配置确认无误,使用的是alist作为服务端,储存是123pan。