• 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

How to average columns of data from multiple, flat arrays?

How to get the survey List from surveygizmo API in the Postman?(Trial Version)

Attempt to read property "view" on null when sending password reset email

I'm trying to write a clean url for my website using the $_SERVER['REQUEST_URI'] in php

Access denied for user 'homestead'@'localhost' (using password: YES)

Laravel PackageManifest.php: Undefined index: name

possible options to create pdf file using html elements to generate invoice in php and codeigniter

Correctly determine if date string is a valid date in that format

PHPUnit 7: Failed asserting that exception of type InvalidArgumentException is thrown

Laravel : How to Create Dropdown to Select FOREIGN KEY from Other Table?

Two buttons one form

How do I refresh a DIV content?

How to put php code inside opening and closing shortcodes

Mysqli multi query error

Laravel php artisan serve to mimic HTTPS

About Contact Privacy policy Terms and conditions