title: Image not showing when URL is inputted
body: <p>So, you know how you make a image uploading system with InfinityFree PHP hosting?
  Well, I made one but it has a problem. When I get the image and paste the link in like example Discord Chat, it does not show as a Image, it just shows the link. I saw somebody use InfinityFree and pasted the link, but it works! I don't know how to make happen. Please Help</p>
  <pre><code>Coding: HTML CODE
          &lt;!DOCTYPE html&gt;
          &lt;html&gt;
          &lt;body&gt;
          
          &lt;form action=&quot;upload.php&quot; method=&quot;post&quot; enctype=&quot;multipart/form-data&quot;&gt;
            Select image to upload:
            &lt;input type=&quot;file&quot; name=&quot;fileToUpload&quot; id=&quot;fileToUpload&quot;&gt;
            &lt;input type=&quot;submit&quot; value=&quot;Upload Image&quot; name=&quot;submit&quot;&gt;
          &lt;/form&gt;
          
          &lt;/body&gt;
          &lt;/html&gt;
      
      PHP code: 
      
          &lt;?php
          $target_dir = &quot;uploads/&quot;;
          $target_file = $target_dir . uniqid(&quot;&quot;, false));
          $uploadOk = 1;
          $imageFileType = strtolower(pathinfo($target_file,PATHINFO_EXTENSION));
          
          // Check if image file is a actual image or fake image
          if(isset($_POST[&quot;submit&quot;])) {
            $check = getimagesize($_FILES[&quot;fileToUpload&quot;][&quot;tmp_name&quot;]);
            if($check !== false) {
              echo &quot;File is an image - &quot; . $check[&quot;mime&quot;] . &quot;.&quot;;
              $uploadOk = 1;
            } else {
              echo &quot;File is not an image.&quot;;
              $uploadOk = 0;
            }
          
          // Check file size
          if ($_FILES[&quot;fileToUpload&quot;][&quot;size&quot;] &gt; 500000) {
            echo &quot;Sorry, your file is too large.&quot;;
            $uploadOk = 0;
          }
          
          // Allow certain file formats
          if($imageFileType != &quot;jpg&quot; &amp;&amp; $imageFileType != &quot;png&quot; &amp;&amp; $imageFileType != &quot;jpeg&quot;
          &amp;&amp; $imageFileType != &quot;gif&quot; ) {
            echo &quot;Sorry, only JPG, JPEG, PNG &amp; GIF files are allowed.&quot;;
            $uploadOk = 0;
          }
          
          // Check if $uploadOk is set to 0 by an error
          if ($uploadOk == 0) {
            echo &quot;Sorry, your file was not uploaded.&quot;;
          // if everything is ok, try to upload file
          } else {
            if (move_uploaded_file($_FILES[&quot;fileToUpload&quot;][&quot;tmp_name&quot;], $target_file)) {
              echo &quot;The file &quot;. htmlspecialchars( basename( $_FILES[&quot;fileToUpload&quot;][&quot;name&quot;])). &quot; has been uploaded.&quot;;
            } else {
              echo &quot;Sorry, there was an error uploading your file.&quot;;
            }
          }
          ?&gt;
      
      Anyone know how to help?
  </code></pre>