• 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

browsersync doesn't work with XAMPP

json_encode turns array into an object

How to change the app environment at run time?

Add Class in html Dynamically in PHP

How to display MySQL table using php and edit it in a web browser

ORA-12546: TNS:permission denied error connection to remote oracle server

Extract house numbers from address string

Can we define variables in `.tpl` files?

SQL AVG() to 2 decimals

I want a way to give path to my files which are outside of public folder in laravel

Doctrine 2 mapping referencing unique key

protect images from being copied

Reducing authentication calls on external API (Laravel 5.6)

how to validate form data in codeigniter 4

Convert regular text to array using notepad++

About Contact Privacy policy Terms and conditions