• 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

WordPress ACFNotice: get_field() - We've detected one or more calls to retrieve ACF field values before ACF has been initialized

How to prevent phpmailer sending embedded image as an attachment on Gmail?

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

Laravel database insert with combining array and string

protect images from being copied

How to get the survey List from surveygizmo API in the Postman?(Trial Version)

RuntimeException: Unable to create the cache directory (/var/www/sonata/app/cache/dev)

Implode array with array of glue strings

how to remove %20 in the url in php

How to write PHP in XSLT

How to get variable from JavaScript to PHP [duplicate]

laravel controller function parameters

Detect emoticons in string

Upgrade PHP on AWS Linux

How to convert time from one timezone to another in PHP

About Contact Privacy policy Terms and conditions