• 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

Elasticsearch - Want to sort by field in all indices where that particular field available or not if not then avoid it

PHP block shortcut in Visual Studio Code

Results page in other window

Unit (real unit test) of test laravel relationship

Laravel implode array items to new lines

Alert message after submitting form in PHP

protect images from being copied

Xdebug 3 not showing in phpinfo on m1 Monterey

target [LaravelFortifyContractsRegisterViewResponse] is not instantiable

ldap is missing from system when installing adldap2 in laravel

Elastic Beanstalk with Laravel Envoy

Message: Set sys_temp_dir in your php.ini after installed composer

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

Exact alternate to mcrypt_encrypt in PHP 7.2

how to check version of codeigniter framework?

About Contact Privacy policy Terms and conditions