The problem when i click the image, the image is downloading instead of opening to other tab.
@foreach($image as $get_image_value)
<div class="thumbnail">
<figure>
<a href="{{url('/storage/'.$get_image_value->image.'')}}" target="_tab">
<img src="{{url('/storage/'.$get_image_value->image.'')}}">
</a>
</figure>
</div>
@endforeach
Sample image
If the image is downloading then either:
Content-Disposition: attachment
header to tell the browser to download it.Content-Type
header for the image.You can't do anything about the first case.
The second case you will need to find the code or server configuration that is setting that header and change it.
The third case you will need to fix the server configuration so it sends the correct Content-Type
. This might be a case of renaming the file so it has the correct file extension.