• 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

html-php form submission after validation through JavaScript [closed]

Laravel set default language not working

How do I do HTTP basic authentication using Guzzle?

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

WordPress - Dynamically add user ID to the end of a URL

Converting alphabet letter to alphabet position in PHP [duplicate]

Laravel : How to Create Dropdown to Select FOREIGN KEY from Other Table?

How to convert the int value to inch in PHP [closed]

Not able to access model in the controller mautic

How to install LDAP in Docker php-fpm alpine

"Mixed content blocked" when running an HTTP AJAX operation in an HTTPS page

Correct way to use LIKE '%{$var}%' with prepared statements?

CSS file not imported in laravel blade view

PHPUnit gives error: Target [IlluminateContractsViewFactory] is not instantiable

Form repeater send wrong data with last element in Laravel

About Contact Privacy policy Terms and conditions