• 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 how to calculate moments with variables rows

Get image type from base64 encoded src string

Laravel print last executed SQL query with Query log

Load a .env file with PHP

SQLSTATE[HY000]: General error: 1 table posts has no column named *

Get data from accuweather api url

Explode not working properly with dash

Wordpress add responsive srcset header image to theme

How to redirect to another page and call a Function there on Angular ng-click

How to loop a tree array with unknown depth and get array blocks?

Symfony - "framework.test" config is not set to true

Why rand() every time I refresh the page?

Google API Heatmap Layer exception, why?

Laravel 5.5 change unauthenticated login redirect url

Add 2 Webcam in one page with WebcamJS

About Contact Privacy policy Terms and conditions