• 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

disable two buttons after clicking another button

WAMP/Wordpress - cURL error 28: Operation timed out after 10001 milliseconds with 0 bytes received

Adding Multiple Custom Post Types in Wordpress

Create tags in laravel post publishing

How to downgrade or install a specific version of Composer?

php script to delete files older than 24 hrs, deletes all files

How to find the date a user created their Google account

Hide email address with stars (*)

Update Total in checkout of Woocommerce with Ajax Request

Error when uploading certain .png files "Interlace handling should be turned on when using png_read_image"

Pages are working fine on localhost but not running on the hosting server

I cannot create a auto generated date time in mysql workbench

Two buttons one form

Nginx disallowing execution of PHP in uploads directory with Magento

PHP code for generating decent-looking coupon codes (mix of letters and numbers)

About Contact Privacy policy Terms and conditions