• 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

Add rows to Single product Additional information table in WooCommerce 3.6

How can I format this number correctly using PHP?

Two buttons one form

500 Internal Server Error on Ajax request. Not sure the origin of the problem

PHP: How to solve ob_start() in combination imagepng() issue?

Passing PHP JSON to Javascript: echo json_encode vs echo json declaration

Detect if PHP session exists

Xdebug can't connect back to Docker host

Explode not working properly with dash

How can I get new CSRF token in LARAVEL by using ajax

How to disable widget block editor of WordPress?

Converting array to string and then back in PHP

What is PHP's equivalent of JavaScript's "array.every()"?

how to prevent float variables displaying as scientific notation when printing [duplicate]

How can I create a Download Page with post php method?

About Contact Privacy policy Terms and conditions