<form action="" method="post" enctype="multipart/form-data">
<label for="answer">post</label>
<div class="form-group">
<textarea id="DescriptionNew" onkeypress="return _checkLength(this,255,event)"
onchange="return _checkLength(this,255,event)" name="answer"
style="width: 100%;height: 200px;"></textarea>
<input id="fileUpload_oafileUpload" onchange="myFunction()" name="image" type="file">
</div>
<br>
<button type="submit" name="post" class="btn btn-success">Հաստատել</button>
</form>
<script>
document.getElementById("fileUpload_oafileUpload").addEventListener("change",
function (e) {
document.getElementById("DescriptionNew").value = this.files[0].name;
});
</script>