• 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

PHP how to detect if running on arm64 cpu?

The difference when using if statement true === something() vs something() === true [duplicate]

How to add a custom field to all Woocommerce attribute terms using add_action

Why getting "Build step 'Execute shell' marked build as failure" error while creating a backup tar for files

laravel MVC execution flow

How to make a array inside array?

How to install php_imagick on wamp64

Image upload not working through ajax Laravel

Prevent blank space in pdf pages (DomPdf)

How to render html from a @foreach loop in a textarea

Adding the custom page with add_menu_page function on Wordpress

Fatal error: Trait 'LaminasDbAdapterLaminasDbAdapterAdapterInterface' not found in /var/www/vendor/laminas/laminas-db/src/Adapter/Adapter.php

Navigation idle on content download

Respond with status code 401 on authentication failure using Laravel and Passport?

Display the default discounted price and percentage on Woocommerce products

About Contact Privacy policy Terms and conditions