Skip to content
Advertisement

This is simple php code which displays image chosen from directory, but when I run it, It shows torn image and doesn’t display the actual image

This is simple php code which displays image chosen from directory, but when I run it, It shows torn image and doesn’t display the actual image..

This is the output that I am getting

enter image description here

Does anyone know why is this happening? I have tried to run this in all browsers, and it is still showing

This is the code:

JavaScript

[This is the output that I am getting]

https://i.stack.imgur.com/mQNdX.png

Advertisement

Answer

Use the following code.

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement