• 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

Add 2 Webcam in one page with WebcamJS

Match csv filenames to table names and import

Laravel Pagination links() not working

Custom add to cart button URL for specific product in WooCommerce?

I need to link Google Sheet with my Laravel

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

wordpress function breaks wp-admin

Google API Heatmap Layer exception, why?

Installing Composer - Internal Error

Laravel Delete and Update

How to edit Records using CodeIgniter

Redirect to previous page with php

Transpose multidimensional array and join values with commas

Upgrade PHP on AWS Linux

PhP how to calculate moments with variables rows

About Contact Privacy policy Terms and conditions