• 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

enable Apache http Authorization header

Download & Save Zoom Recording in directory by PHP

Destroy session upon refresh

WHM Enabling mod_rewrite

Laravel - How to properly generate unique slugs from article titles?

carbon generated datetime not stored correctly into the database

Creating live search with AJAX and CodeIgniter

Limit of log line written to Apache Errorlog from mod php error_log

Unsure why I am getting: Number of variables doesn't match number of parameters in prepared statement

Reload parent page after submit in iframe

Refresh specific HTML content that retrieves data from MySQL

loop through an anchor id

Custom post type single page not working

How to override htaccees file for cache control header

Laravel: HTML in notification

About Contact Privacy policy Terms and conditions