• 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

Google API Heatmap Layer exception, why?

Sum array values

No result using makeStyles Material UI in react 18

PHP header location absolute URL

Using spatie/media-library, how to rename a collection of uploaded files?

The sum of the user's points

Google Gmail API - How to login programatically?

Where do I need to place a hook for phpunit?

Pass a select with mysqli_fetch_row to a table

How to run or debug php on Visual Studio Code (VSCode)

How can I get a div content in php

using random function but it's displaying duplicates

cakephp save drag and drop list order to database

how do i retrieve and display the alt text of an image in wordpress?

unable to load your default controller on Codeigniter

About Contact Privacy policy Terms and conditions