• 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

How to get the survey List from surveygizmo API in the Postman?(Trial Version)

Yii2: How do I debug console commands?

Warning: Unknown: Failed to write session data using user defined save handler. (session.save_path: ) in Unknown on line 0

Laravel 5.2: Unable to locate factory with name [default]

Get latest Tweets - What API

Unable to guess the mime type as no guessers are available Laravel 5.2

Laravel after login Two factor not working

PHP - Check if string contains words longer than 4 characters, then include "+ *", and for those shorter than 4 characters include only "*"

How to get the total hour from starting time to end time in php

Multiply each value in array using array_map function

PHP if in_array() how to get the key as well?

Updating and Synchronizing Woocommerce Subscriptions to Custom Date

Elastic Beanstalk with Laravel Envoy

is there any way to validate a field that sometime is File(image) && sometime is String(Src of same image)

Whats the point of running Laravel with the command 'php artisan serve'?

About Contact Privacy policy Terms and conditions