• 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

Convert string to lowercase AND then convert it to its original form in PHP, is it possible?

php retrieve specific data onclick from database in a list format

Execute only one time and then wait set period of time before executing again

How to get median and quartiles/percentiles of an array in JavaScript (or PHP)?

cakephp save drag and drop list order to database

How to create a cookie to store the timestamp of when a page is first loaded with php

Change the alert text on add to cart action without selected variation in Woocommerce

WAMP Virtual Host not working

Only on Firefox "Loading failed for the <script> with source"

Laravel post contact form giving me error 419

Batch request Google Calendar php API

Can't remotely connect to MySQL error (13) with PHP script, connecting through CLI works

How to show selected value using javascript in laravel

How do I call Validator from a namespace with an already existing Validator class

How to install ZeroMQ for PHP on an Alpine Linux container?

About Contact Privacy policy Terms and conditions