• 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

protect images from being copied

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

Add a custom text for a particular product on specific email notification in Woocommerce

phpunit - mockbuilder - set mock object internal property

Laravel s3 upload file with metadata using pre-signed url

Calculating Median of an array in PHP

Pagekite error: FAIL: localhost:8080 is down

How to keep value of selected value after form submission?

Symfony autowiring issues since docker update

Destroy session upon refresh

Best way to scrolldown onpageload

MySQL - Connection failed: No route to host

Yii Ajax Submit button

Make certain characters of a word from string bold

Add customer email and phone in "Order" column to admin orders list on Woocommerce

About Contact Privacy policy Terms and conditions