• 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

Too few arguments to function PendingResourceRegistration::name(),1 passed in C:xampphtdocsproject outesweb.php on line 18 and exactly 2 expected

How to get multiple values with same key from an array PHP

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

Remove categories with all childs derived from parent category

How to install php_imagick on wamp64

php retrieve specific data onclick from database in a list format

echo language construct is discouraged. (PHP)

Connecting an HTML webpage to a SQL Server

Install mysql client in docker image

No definition found for function in vendor vscode

How can I get user id from session in javascript?

Group data in a multidimensional array based on two columns

Correct way to use LIKE '%{$var}%' with prepared statements?

PHP block shortcut in Visual Studio Code

Laravel - How to properly generate unique slugs from article titles?

About Contact Privacy policy Terms and conditions