• 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

protect images from being copied

Laravel 5.1 xmlHttpRequest AJAX POST TokenMismatchException

Refresh specific HTML content that retrieves data from MySQL

Get sql.h error on MacOS 12 (Monterey) sqsrv and pdo_sqsrv drive installation

How to change 'users' auth table and use another instead Laravel

Multiply each value in array using array_map function

Transfer data between JavaScript and PHP through JSON

How to disable widget block editor of WordPress?

Laravel insert dynamic input values with radio button

how to upload binary image to sql server using php laravel

Execute only one time and then wait set period of time before executing again

Get latest Tweets - What API

How to get median and quartiles/percentiles of an array in JavaScript (or PHP)?

Problem with fetching data from database in Laravel

Laravel set default language not working

About Contact Privacy policy Terms and conditions