• 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 can I remove the "Advanced" panel of all blocks in WordPress block editor?

ORA-12546: TNS:permission denied error connection to remote oracle server

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

Laravel csrf token mismatch for ajax POST Request

how to retrieve the first and last instance of a row in pdo dataset

HTTP Range requests with php for Video Embedding for solving going to specific time in video (seek bar not work)

How to Display Data in Yajra Datatables Laravel 7?

Adding multiple items to WooCommerce cart at once

How do I upload a laravel project on cPanel shared hosting?

Laravel Collections. Is there some kind of assertStructure method?

How to remove Deprecated SymfonyComponentDebugDebugClassLoader?

Fatal error: [] operator not supported for strings

Add Class in html Dynamically in PHP

Add rows to Single product Additional information table in WooCommerce 3.6

How do I enable error reporting in Laravel?

About Contact Privacy policy Terms and conditions