• 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

Unable to get password for the instance created from AMI

How can I solve "laravel/horizon v1.1.0 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system"?

How to make dot match newline characters using regular expressions

How to show selected value using javascript in laravel

How to get the ID of the link in another page in php

Detect if PHP session exists

Yii Ajax Submit button

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

PHP 8 - libxml_disable_entity_loader() has been deprecated. How do I replace the functionality it provides?

Dynamic table in HTML using MySQL and php

Reload parent page after submit in iframe

Get image type from base64 encoded src string

Custom API and cunsuming in php?

How to KeyBy where multiple items have the same key

Get Header Authorization value of a login api (sent with username and password in json body) using php curl

About Contact Privacy policy Terms and conditions