在codeigniter应用程序中看不到图像

在codeigniter应用程序中看不到图像

本文介绍了在codeigniter应用程序中看不到图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个在codeigniter开发的应用程序,其中有一个照片上传功能。它工作正常,照片被成功上传到所需的路径。但是当打开应用程序时。它显示一个破碎的图像。如果我检查该元素并复制粘贴图像的URL在新的选项卡,它给出404错误,但当我刷新相同的标签,其中图像URL打开它打开并显示图像。托管应用程序的服务器为godaddy。

I have an application developed in codeigniter in which there is a photo upload feature. It works fine and photo gets uploaded to the required path successfully. However when opening the application. it shows a broken image. If I inspect the element and copy paste the URL of the image in the new tab it gives 404 error, but when I refresh the same tab in which Image URL is open it opens up and shows the image. The server on which application is hosted is godaddy.

<div class="col-lg-2">
 <div class="thumbnail">
  <a href="<?php echo base_url(); ?>special_instructions/1454479436_IMG_20160118_154912.jpg" target="_blank">
   <img src="<?php echo base_url(); ?>special_instructions/1454479436_IMG_20160118_154912.jpg" class="img-rounded">
  </a>
 </div>
</div>


推荐答案

我只需要禁用热链接保护免受Cpanel!有效。但是,禁用热链接保护有什么严重后果吗?

All I had to do was to disable the hot link protection from Cpanel!! It worked. But are there any serious consequences of disabling hot link protection?

这篇关于在codeigniter应用程序中看不到图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-29 04:54