• 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

Combine array with same value and add other [duplicate]

MISSING UPDATES FOR: MEDIA Drupal 9

Querying only one row from a one to many relationship laravel

How to insert Google Adsense Code in PHP script?

selected value from the listbox in php

Cant seem to get the Pagination to work on my WooCommerce REST API application?

how to identify the web server name of remote host

How to loop sql table data inside a html table

PHP DOTENV unable to load env vars

zsh: command not found: php

Lexik JWT authentication problem "Invalid credentials"

No definition found for function in vendor vscode

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

How to get median and quartiles/percentiles of an array in JavaScript (or PHP)?

*** ERROR *** The PHP configuration loaded file is: c:/wamp64/bin/php/php8.1.0/php.ini - should be: c:/wamp64/bin/apache/apache2.4.53.1/bin/php.ini

About Contact Privacy policy Terms and conditions