• 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

xdebug 3 not working in ubuntu 20.04 with docker

Select option menu read from database and use it's values

How to fix Call to undefined method AppModelsTableName::factory?

yii2 and mssql insert varbinary into model

Check for PDO Results, If None Display Message, If Yes then Loop Through

How to edit Records using CodeIgniter

WooCommerce Additional Information - if empty, hide

Encrypt in php and decrypt in Dart(flutter)

How to make a array inside array?

Destroy session upon refresh

How to get quarter for future date using Carbon?

Form Validation and Submission to database

Creating live search with AJAX and CodeIgniter

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

Issue saving card for customer

About Contact Privacy policy Terms and conditions