title: how to insert default image into database with PHP
body: <p><strong>UPDATED:</strong>
  I have a form which have image upload field which have not required field. Now i want to if anyone submitting form without uploading image then a default image will be inserted into database. How can i do that with PHP? </p>
  
  <pre><code>&lt;form method="POST" action="{{ route($base_route.'.eventEdit', ['event_id' =&gt; $event-&gt;event_code]) }}" accept-charset="UTF-8" id="general_form" novalidate="novalidate"&gt;
       &lt;input name="name" type="text" value="something" class="name"&gt;
       &lt;input name="name" type="file" value="DefaultImageName"  class="image"&gt;
       &lt;button class="btn btn-default"&gt; Submit &lt;/button&gt;
  &lt;/form&gt;
  </code></pre>