• 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 mail sending empty mails

Nginx disallowing execution of PHP in uploads directory with Magento

Custom post type single page not working

Convert regular text to array using notepad++

How to get company posts from LinkedIn via API?

Laravel/docker-compose/redis - Class 'Redis' not found

How to get multiple values with same key from an array PHP

Hide specific products from unlogged users based in product category in WooCommerce

Send same name multiple checkbox values via ajax

Natural ORDER in Laravel Eloquent ORM

ldap is missing from system when installing adldap2 in laravel

How to redirect to another page after n seconds in wordpress without using javascript?

SendGrid: Sending an email to multiple recipients without other emails being shown on the "to" field

How to send upload image through email

GRPC installed successfully on ubuntu but php is looking for it in another folder

About Contact Privacy policy Terms and conditions