• 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

Add Class in html Dynamically in PHP

Refresh specific HTML content that retrieves data from MySQL

Return new collection without modifying original collection

PHP: Convert any string to UTF-8 without knowing the original character set, or at least try

Cut an arabic string

What is the difference between client-side and server-side programming?

Add a text next to stock quantity if it is less than 10 in Woocommerce single product

Unable to uninstall brew php from homebrew

HTML and PHP in one file

Create a zip file and download it

How can I get new CSRF token in LARAVEL by using ajax

Sliders in Laravel

Laravel: Why is my variable not being set while it's in the construct function of the controller?

How to Display Data in Yajra Datatables Laravel 7?

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

About Contact Privacy policy Terms and conditions