• 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

How to run a shell as root from php (apache)

How to average columns of data from multiple, flat arrays?

stay with the last 15 elements of an array [duplicate]

Use Python plotly chart in PHP

How to get AJAX to post on second page?

Composer fails with kylekatarnls/update-helper on new homestead

Display the WooCommerce product price inside a custom function

php: command not found Command PhaseScriptExecution failed with a nonzero exit code

PHP Download MP3 files from directory on server

SilverStripe unable to populate multiple member Childs

How to redirect to another page and call a Function there on Angular ng-click

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

How to get quarter for future date using Carbon?

zsh: command not found: php

How to run or debug php on Visual Studio Code (VSCode)

About Contact Privacy policy Terms and conditions