• 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 to add automatically collapse/expand in content wordpress (single.php)?

Elastic Beanstalk with Laravel Envoy

How to create a cookie to store the timestamp of when a page is first loaded with php

Wordpress 'post_type_link' hides permalink

Star rating with half star support

Laravel database insert with combining array and string

How to pass security cloudflare server with php curl

How to disable only_full_group_by option in Laravel

Display specific shipping method if woocommerce product has specific acf field value

Query Optimization, changing the queries in the loop into a single processing query

Adding hreflang tags automatically in WordPress subdirectory multisite

Laravel 8 Multiple Relationships for Factory

how to create html table in php

Malformed MIME header error in Symfony 5.3

How to submit a form when page loads using JavaScript?

About Contact Privacy policy Terms and conditions