首页 文章

Phabricator:设置本地磁盘上传限制?

提问于
浏览
1

我将根据this manual在Phabricator上传文件 . 但是我发现"$your_site/applications/view/PhabricatorFilesApplication/"中的本地磁盘存储引擎有8M的限制 .

我已经在vhost服务器块中为nginx设置了 client_max_body_size 64M .

另外, post_max_size = 64Mupload_max_filezie = 64M for php .

然后,重启nginx,php-fpm服务 .

但Phabricator仍打印出来

没有配置的存储引擎可以存储此文件 . 有关配置存储引擎的信息,请参阅文档中的“配置文件存储” .

当我上传一个大小超过8M的文件 .

此外,没有 storage.local-disk.max-size 配置密钥 .

如何自定义本地磁盘上传限制?

Phabricator 535c1a5,libphutil aa6cd8f

2 回答

  • 1

    没有一个引擎支持超过8MB . 通过在客户端分块并上传块来存储较大的文件(块大小目前为4MB) .

    显然,分块只能用于拖放 - 尝试使用而不是使用文件上传表单 .

  • 1

    根据指南:https://secure.phabricator.com/book/phabricator/article/configuring_file_storage/

    配置nginx和php后,需要启用 Engine: MySQLEngine: Local Disk

    首先转到从 https://github.com/phacility/phabricator.git 克隆的phabricator目录

    1.引擎:MySQL

    phabricator/ $ ./bin/config set storage.mysql-engine.max-size 8388608
    

    2.引擎:本地磁盘

    phabricator/ $ ./bin/config set storage.local-disk.path /path/to/store/phabricator/files
    

相关问题