• 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

Can't exclude directories from .htaccess mobile redirect?

"Mixed content blocked" when running an HTTP AJAX operation in an HTTPS page

PHP using str_starts_with for array to exclude same as with wildcard

Converting IPv6 to IPv4 address in PHP

SlimExceptionHttpNotFoundException

I need to link Google Sheet with my Laravel

PHP block shortcut in Visual Studio Code

How to show selected value using javascript in laravel

WordPress + Nginx on non-standard port behind AWS ELB results in broken links

WooCommerce - unset "<product> removed notice…" on cart page

Symfony redirect if already loggedin from login page

Transpose multidimensional array and join values with commas

Composer Curl error 60: SSL certificate problem: unable to get local issuer certificate

Creating a config file in PHP

How to add class name to an existing tag in php

About Contact Privacy policy Terms and conditions