laravel - 如果使用 auth:api 中间件,为什么我无法在我的 Vue laravel 应用程序上上传文件数据。如果中间件被转义,则上传文件
问题描述
我的本地开发工具:使用 Laragon 作为本地服务器。使用 PhpStorm 数据库:Mysql。 Jwt 身份验证:护照。 我的前端应用程序 vue 与后端 laravel 是分开的。我正在使用 axios 将表单数据从我的 vue 应用程序发送到 laravel 应用程序。我还设置了 Content-type Multipart/form-data。
这是我的日志文件
我正在使用 laragon 进行本地开发
2021-03-04 13:49:13] local.ERROR:无法打开文件。{"exception":"[object] (RuntimeException(code: 0): 该文件无法打开。在 I:\laragon\www\AuthenticationUsingPassport\vendor
yholm\psr7\src\Factory\Psr17Factory.php:46) [stacktrace ]
这个问题详细说明了问题:Failed image upload Laravel and Windows Server 2019 but its on windows server。
解决方案
推荐阅读
- android - 什么时候需要观察者获取实时数据?
- c# - 尝试在实例化的预制件上应用 z 旋转未按预期工作
- visual-studio-2017 - 如何解决 Visual Studio 2017 社区版中的“'cl' 不被识别为内部或外部命令”问题?
- javascript - 无法在 React JS 表中呈现子对象
- javascript - Javascript:检查项目是否存在于对象内的数组中
- python - AttributeError:无法获取属性“DataFrameSelector”
- python - Python:如何写入 fd 3?
- quickfixn - 在 QuickFIXn NewOrderSingle() 中设置用户定义字段
- html - HTML表格作为背景?
- c++ - 如何让我的代码在读取字符串或字母时显示错误