• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

get folder directory from input type file - PHP

javascriptphpjqueryhtml


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>

Related Snippets

Converting alphabet letter to alphabet position in PHP [duplicate]

php mysql + create a friend request system

PHP: PDO + CSV export not downloading (headers issue?)

PHP Form Not Inserting

PHP if in_array() how to get the key as well?

Laravel 5 issue with wherePivot

How to Display Data in Yajra Datatables Laravel 7?

Get number of working days between two dates in PHP [duplicate]

PHP Slim Framework request using withAttribute error

PHPExcel export HTML table to xlsx

Phpunit partial mock + proxy Entity

Set quantity minimum, maximum and step at product level in Woocommerce

unable to load your default controller on Codeigniter

php code to send checkbox form results to email

Uncaught TypeError: Cannot read property 'length' of null when retrieving tags from wp

About Contact Privacy policy Terms and conditions