• 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

get attribute from class not working php 7

How to update array value in Laravel

Exact alternate to mcrypt_encrypt in PHP 7.2

Symfony redirect if already loggedin from login page

Can I write PHP code across multiple lines per statement?

Android Volley getParams() method not getting called for JsonObjectRequest

I want a way to give path to my files which are outside of public folder in laravel

How to find phpcs current default standard

laravel automatically deletes server.php on php artisan serve

Apply session id from request header

How to fix bootstrap multiselect search data using ajax

Laravel implode array items to new lines

Laravel Model save() & update() Not Saving

Normalize DateInterval in PHP

How to get page number on dompdf PDF when using "view"

About Contact Privacy policy Terms and conditions