• 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

PHP Print to Network Printer

Pass a select with mysqli_fetch_row to a table

MySQL upgrade causing unexpected results on simple WHERE clauses

How to make dot match newline characters using regular expressions

Testing subscription renewals on Stripe

calling server using nusoap with complextype

protect images from being copied

How can I stop a symfony process which is listening on http://127.0.0.1:8000

Adding one microsecond to Datetime object in PHP

Symfony 4: "Autowire: you should configure its value explicitly."

PHP AWS Cognito 'Error executing "SignUp" : ResourceNotFoundException : User pool client XXXX does not exist

Star and Half Star Rating in Laravel

How can I format this number correctly using PHP?

Combine array with same value and add other [duplicate]

Composer Script echo

About Contact Privacy policy Terms and conditions