Reputation: 79
simple question this time around...
So I have this code I managed to find and it works well for me. But I would like to add to it a thumbnail display of the image upon submission. Could anyone help me to figure out the code and how it will fit in to display a thumbnail? Please and thanks everyone.
Here is the jsfiddle for it.
HTML:
<form action="<?php echo $_SERVER['SCRIPT_NAME']; ?>" method="post" enctype="multipart/form-data">
File: <input type="file" name="file" style="width: 250px;"><br>
<input type="submit" name="submit" value="Upload File">
</form>
Upvotes: 0
Views: 242
Reputation: 1385
Just make and <img>
tag with attribute src="$link"
where $link
is the link to the image.
Upvotes: 2