• 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

CodeIgniter extend CI_URI undefined method

RabbitMQ PRECONDITION_FAILED - unknown delivery tag

PHP 8.1: strftime() is deprecated

best way to store error messages in Laravel (session or variable)

Adding reCAPTCHA v2 into my PHP file

How to auto populate preferredCountries from intl-tel-input with db output

How to fix " Uncaught TypeError: Argument 1 passed to JpGraphException::defaultHandler() " problem in php 7.1.3 and jpgraph 4.2.6?

Sum column values from multiple arrays

args[max_input] woocommerce if statement confused

PHP Sorting - getting 10, 11, 12 ... 1, 20, 2 rather than 1, 10, 11, 12 ... 2, 20

phpunit - mockbuilder - set mock object internal property

Explode not working properly with dash

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

Adding custom body class to the custom archive pages

How to solve cURL error 60: SSL certificate in Laravel 5 while Facebook authentication

About Contact Privacy policy Terms and conditions