Git Product home page Git Product logo

Comments (5)

wellswong1990 avatar wellswong1990 commented on August 24, 2024

上传的图片限制成了2M,能更大点吗?

from wizard.

mylxsw avatar mylxsw commented on August 24, 2024

已经调整为 100M,Docker 镜像的话使用最新的 1.0.5

FROM mylxsw/wizard:1.0.5

如果需要更大的文件上传,Docker 镜像的话,应该可以通过添加下面命令重新打包解决,指定更大的大小限制

RUN echo "upload_max_filesize = 100M\npost_max_size = 0" > "$PHP_INI_DIR/conf.d/upload-limit.ini"

如果是自己装的 PHP 环境运行,参考 FAQ 问题4。

from wizard.

wellswong1990 avatar wellswong1990 commented on August 24, 2024

已经调整为 100M,Docker 镜像的话使用最新的 1.0.5

FROM mylxsw/wizard:1.0.5

如果需要更大的文件上传,Docker 镜像的话,应该可以通过添加下面命令重新打包解决,指定更大的大小限制

RUN echo "upload_max_filesize = 100M\npost_max_size = 0" > "$PHP_INI_DIR/conf.d/upload-limit.ini"

如果是自己装的 PHP 环境运行,参考 FAQ 问题4。

那docker 容器化后挂载/webroot/storage/app/public 后不能上传图片及文档类型怎么解决呢?

from wizard.

mylxsw avatar mylxsw commented on August 24, 2024

对于这个问题 “那docker 容器化后挂载/webroot/storage/app/public 后不能上传图片及文档类型怎么解决呢?”,能否详细描述一下呢

  • 无法上传图片还是所有的文件都无法上传呢,报错了吗,还是返回什么信息?
  • 挂载 /webroot/storage/app/public,你的操作步骤是什么

from wizard.

wellswong1990 avatar wellswong1990 commented on August 24, 2024

对于这个问题 “那docker 容器化后挂载/webroot/storage/app/public 后不能上传图片及文档类型怎么解决呢?”,能否详细描述一下呢

  • 无法上传图片还是所有的文件都无法上传呢,报错了吗,还是返回什么信息?
  • 挂载 /webroot/storage/app/public,你的操作步骤是什么

随便挂载 不一定要挂载到 /webroot/storage/app/public目录
只要用了挂载的东西,上传文件及上传图片就没办法用
image
比如 docker run -d --name my-wizard -p 8080:80 -v /roor/file:/webroot/storage/app/public my-wizard
直接运行挂载 就没办法上传图片

from wizard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.