Aditya Achar February 2016

Image not getting visible in codeigniter application

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>

Answers


Aditya Achar February 2016

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?

Post Status

Asked in February 2016
Viewed 1,231 times
Voted 9
Answered 1 times

Search




Leave an answer