• 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

Laravel display validation error

How to run a shell as root from php (apache)

How to pass data to all views in Laravel 5?

Image upload not working through ajax Laravel

Form repeater send wrong data with last element in Laravel

Manage independently the decimal number of the price of each product [duplicate]

loop through an anchor id

backup files to google drive using PHP

PHP array slice from position + attempt to return fixed number of items

Problem with fetching data from database in Laravel

woocommerce get_order_report_data to show order_item_id

AJAX call fails with SyntaxError: Unexpected end of JSON input

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

Laravel 4 Redirect::back() not going to previous page (refreshing current page)

Insert multidimensional array to codeigniter cart

About Contact Privacy policy Terms and conditions