• 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

Laravel phpunit test failing authorization

Target Individual Form Instance/Counter Inside A PHP While Loop

CONCAT columns with Laravel 5 eloquent

Don't show recurring price for WooCommerce subscriptions worth 0$

VB.NET WebRequest with PHP POST

I need to link Google Sheet with my Laravel

Get orders by date and status woocommerce

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

How can i update or reset my password without entering email field in laravel-8?

Form Validation and Submission to database

Populate Dynamic Dropdowns List in Codeigniter

How to get Laravel's CSRF Token from Another Website?

Laravel Route issues with Route order in web.php

Substitute integers and dots with regex [duplicate]

Use Python plotly chart in PHP

About Contact Privacy policy Terms and conditions