• 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

Popup Window and PHP form

Fatal error: Trait 'LaminasDbAdapterLaminasDbAdapterAdapterInterface' not found in /var/www/vendor/laminas/laminas-db/src/Adapter/Adapter.php

Getting public posts of a random user from Facebook API

Not able to access model in the controller mautic

generating a random code in php?

How to redirect to another page after n seconds in wordpress without using javascript?

JQuery content editable div and text box on submit not sending POST

Using spatie/media-library, how to rename a collection of uploaded files?

Dropdown with current value from Mysql

how to redirect the user back to desired URL after login page in PHP?

Passing PHP JSON to Javascript: echo json_encode vs echo json declaration

PHP Include for HTML?

How to map the two arrays with a duplicate value?

PHPExcel file download using AJAX call

PHP | "The requested PHP extension bcmath is missing from your system."

About Contact Privacy policy Terms and conditions