• 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

Adding reCAPTCHA v2 into my PHP file

Symfony 4: how to allow dynamic values for array nodes in bundle configuration?

echo language construct is discouraged. (PHP)

Facebook API, get page post link (PHP)

JSON Render Issue in Date Object Laravel and PHP 7.4

laravel 5.6 bulk inserting json data

Symfony autowiring issues since docker update

Undefined Array Key error when uploading image on php

Transpose and flatten two-dimensional indexed array where rows may not be of equal length

Laravel multi auth - Authentication user provider [] is not defined

How to properly start Laravel 8 with Bootstrap & authentication

Hide specific products from unlogged users based in product category in WooCommerce

How to retrieve Active Directory group policy maximum password age using LDAP

how to identify the web server name of remote host

PHP random string generator

About Contact Privacy policy Terms and conditions