• 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

shell errors running php exec

Yii Ajax Submit button

Reload parent page after submit in iframe

phpunit - mockbuilder - set mock object internal property

jQuery Ajax Post with data

Not able to override collapsible.js in magento 2

PDOException SQLSTATE[HY000] [2002] No such file or directory

Reorder attribute dropdown terms in Woocommerce single variable products

How to unlink image from folder?

Laravel Mix Uncaught ReferenceError: $ is not defined

How can I get new CSRF token in LARAVEL by using ajax

Laravel You requested 1 items, but there are only 0 items available

Session timeout in Yii2

How to set a domain name with php artisan serve

How to get the ID of the link in another page in php

About Contact Privacy policy Terms and conditions