How to save image path or name to database and copy the image in a folder. I have searched many pages on the internet but no luck. Please can anyone show my how to create the controller?
My View
<form action="Create" method="post">
<table>
<tr>
<td>
<input type="date" name="InquirDate" id="InquirDate" placeholder="Date" />
</td>
<td>
<input type="text" id="signby" name="signby" placeholder="signby" />
</td>
<td>
<input type="text" id="description" name="description" placeholder="Description" />
</td>
<td>
<input type="text" id="parentInqNo" name="parentInqNo" placeholder="Parent Inquiry number">
</td>
<td>
<select id="status" name="status">
<option>Draft</option>
<option>Published</option>
</select>
</td>
<td>
<input type="text" id="number" name="number" placeholder="number" />
</td>
</tr>
<tr>
<td>
<input type="text" name="subject" id="subject" placeholder="Subject" />
</td>
<td>
<input type="text" id="empid" name="empid" placeholder="empid" />
</td>
<td>
<input type="file" name="Attachment" id="Attachment" />
</td>
<td>
<input type="text" name="InqiurURL" id="InqiurURL" placeholder="InqiurURL" />
</td>
<td>
<input type="text" name="EnterDate" id="EnterDate" placeholder="EnterDate" />
</td>
</tr>
</table>
<input type="submit" value="Save">
</form>