• 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

generating a random code in php?

PHP Sorting - getting 10, 11, 12 ... 1, 20, 2 rather than 1, 10, 11, 12 ... 2, 20

Create tags in laravel post publishing

Refresh specific HTML content that retrieves data from MySQL

Uncaught TypeError: Cannot read property 'length' of null when retrieving tags from wp

How can I make a full text index of the column?

Input and output values for php into the browser?

Changing font color in javascript

How to get result of the formula on import xlsx with maatwebsite using Laravel? I get formula and not value of the formula

How do I refresh a DIV content?

Call authenticate manually in router middleware

How to fix bootstrap multiselect search data using ajax

Unable to create lockable file - Laravel 8 & PHP 8

PHP-Sort array based on another array?

Laravel Pagination links() not working

About Contact Privacy policy Terms and conditions