gpt4 book ai didi

php - 图片上传到文件夹中。但在浏览器中无法查看

转载 作者:行者123 更新时间:2023-12-01 03:33:31 25 4
gpt4 key购买 nike

我使用了内置插件来上传图像。上传的图片位于所选路径的文件夹中。它们没有被损坏。但不幸的是,当我在浏览器中单击图像链接时,它给我一个错误,提示“无法加载资源:服务器响应状态为 500(内部服务器错误)”。

Screenshot of images after uploading

最佳答案

终于我能够解决这个问题了。

问题

上传图片后,我可以在文件夹下找到它们。但是当我单击它们时,我收到内部服务器错误(500)。

解决方案

我转到特定文件夹并检查上传的图像。没有一个被损坏。但它们在浏览器上无法正确显示。这是因为 htaccess 文件头错误。

But error was fixed when I selected the header module in the apache.

Steps to follow

  1. Left click on wamp icon.
  2. Select Apache.
  3. Then select Apache Modules.
  4. Select headers_module.

关于php - 图片上传到文件夹中。但在浏览器中无法查看,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42847924/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com