• 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

send email using gmail-api and google-api-php-client

Nginx disallowing execution of PHP in uploads directory with Magento

Check if a string contain multiple specific words

Send same name multiple checkbox values via ajax

enable Apache http Authorization header

Access relation of pivot table in Laravel

how to validate form data in codeigniter 4

Laravel s3 upload file with metadata using pre-signed url

file_get_contents() without "Http" to access external URL [closed]

Doctrine ORM: Excluding Records Based on Values of Nested Relationships

Prestashop cUrl Login

How to add a sidebar to Woocommerce Shop Page?

Symfony 4: "Autowire: you should configure its value explicitly."

Unable to guess the mime type as no guessers are available Laravel 5.2

Reload parent page after submit in iframe

About Contact Privacy policy Terms and conditions