• 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/docker-compose/redis - Class 'Redis' not found

Call to undefined function openssl_decrypt

get data-value with variable value

Navigation idle on content download

Yoast SEO (WordPress Plugin) - Get plugin generated data manually

How can I solve "laravel/horizon v1.1.0 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system"?

Creating live search with AJAX and CodeIgniter

SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect integer value: 'column_name' in Laravel

Dropdown with current value from Mysql

Extract house numbers from address string

mysql slow on updates for a well optimized query

How to programmatically find public properties of a class from inside one of it's methods

Read users and passwords from a txt file

How to show a popup modal in codeIgniter?

ldap is missing from system when installing adldap2 in laravel

About Contact Privacy policy Terms and conditions