• 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

Laravel Get Days In Month From Month Number?

Laravel whole batch is cancelled if one Job fails

How to access a var with "-" in PHP [duplicate]

Reorder attribute dropdown terms in Woocommerce single variable products

How to write PHP in XSLT

Composer Curl error 60: SSL certificate problem: unable to get local issuer certificate

"Unable to load dynamic library 'pdo_sqlsrv.so' "Cenos7 PHP7.2.10

Not able to access model in the controller mautic

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

How to upload mpdf file after generating to s3 bucket in php

Magento Installation SQLSTATE[HY000] [2002] No such file or directory error

How to get page number on dompdf PDF when using "view"

Call to undefined function openssl_decrypt

Implode columnar values between two arrays into a flat array of concatenated strings

Converting alphabet letter to alphabet position in PHP [duplicate]

About Contact Privacy policy Terms and conditions