get folder directory from input type file - PHP
PHP Snippet 1:
<label> Update to : </label>
<input type="file" class="form-control" id="dirpath" name="dirpath" directory onSubmit = getPath()/>
<script language="javascript" type="text/javascript">
function getPath() {
var inputName = document.getElementById('dirname');
var Path;
Path = inputName.value;
}
</script>