• 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

Combining a describing and one array with data

Render the content of default_filter.php in Joomla front-end

Is it possible to re-use an array taken from PHP via JSON in a $.ajax function?

PHP Warning: Module already loaded in Unknown on line 0

PHP echo values of all sub keys [duplicate]

Correctly determine if date string is a valid date in that format

Log a user out of a website when they put their computer to sleep

How to add a heading in between checkout fields of WooCommerce

Correct way to use LIKE '%{$var}%' with prepared statements?

php 7 php.ini upload_max_filesize not working

Assign output of PHP function to a variable

Laravel excel maatwebsite 3.1 import, date column in excel cell returns as unknown format number. How to solve this?

java URL working on browser but not in client program

PHP only Hit Counter?

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

About Contact Privacy policy Terms and conditions