• 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

using random function but it's displaying duplicates

PHP: set a (deep) array key from an array [closed]

phpMyAdmin ERROR: mysqli_real_connect(): (HY000/1045): Access denied for user 'pma'@'localhost' (using password: NO)

No result using makeStyles Material UI in react 18

VichUploaderBundle error "Expected argument of type "File", "NULL" given" when submitting the form without selecting any file

shell errors running php exec

PHP: How to quickly split a key=value file into associative array

How to retrieve Active Directory group policy maximum password age using LDAP

CodeIgniter 4: Like and Dislike Functionality

Reload parent page after submit in iframe

Insert a DIV after the 6th product only once in WooCommerce category archives

laravel controller function parameters

Where do I need to place a hook for phpunit?

How to use PHPCBF to fix one issue at a time?

How update php.ini on a Mac OS X Mojave?

About Contact Privacy policy Terms and conditions