图像上传到文件夹中。但是无法在浏览器中查看
Image is uploaded in the folder. But can't view in the browser
我使用了一个内置的图片上传插件。上传的图片在所选路径的文件夹中。它们没有损坏。但不幸的是,当我在浏览器中单击图像 link 时,出现错误 "Failed to load resource: the server responded with a status of 500 (Internal Server Error)".
我终于解决了这个问题。
问题
上传图片后,我可以在文件夹下找到它们。但是当我点击它们时,我得到了一个内部服务器错误(500)。
解决方案
我去了特定的文件夹并检查了上传的图片。 None 其中已损坏。但是它们没有在浏览器上正确显示。这是因为htaccess 文件头有错误。
But error was fixed when I selected the header module in the apache.
Steps to follow
- Left click on wamp icon.
- Select Apache.
- Then select Apache Modules.
- Select headers_module.
我使用了一个内置的图片上传插件。上传的图片在所选路径的文件夹中。它们没有损坏。但不幸的是,当我在浏览器中单击图像 link 时,出现错误 "Failed to load resource: the server responded with a status of 500 (Internal Server Error)".
我终于解决了这个问题。
问题
上传图片后,我可以在文件夹下找到它们。但是当我点击它们时,我得到了一个内部服务器错误(500)。
解决方案
我去了特定的文件夹并检查了上传的图片。 None 其中已损坏。但是它们没有在浏览器上正确显示。这是因为htaccess 文件头有错误。
But error was fixed when I selected the header module in the apache.
Steps to follow
- Left click on wamp icon.
- Select Apache.
- Then select Apache Modules.
- Select headers_module.