Image not getting visible in codeigniter applicati

2019-09-05 14:46发布

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>

1条回答
冷血范
2楼-- · 2019-09-05 15:42

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?

查看更多
登录 后发表回答