【发布时间】:2021-04-10 22:31:24
【问题描述】:
我将我的 Laravel 应用程序上传到 C-panel,我的公共内容在 public_html 中,我将 public 上的 index.php 更改为:
require __DIR__.'/../thermotajhiz/vendor/autoload.php';
$app = require_once __DIR__.'/../thermotajhiz/bootstrap/app.php';
以及主根目录中名为 thermotajhiz
的其他文件一切正常,但是当我想上传图片时,不是上传到 public_html,而是在 public_html 之外的 thermotajhiz 文件中创建一个具有公共名称的文件
我该如何解决这个问题?
我正在使用这个插件来上传文件:
【问题讨论】:
-
@sta 这对我不起作用
-
您也可以更改
config/filesystems.php配置 -
昨天我修复了这个stackoverflow.com/questions/65558162/…并将
'diskList' => ['public'],更改为您的自定义磁盘github.com/alexusmai/laravel-file-manager/blob/master/config/…
标签: laravel file-upload laravel-7