• 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

How to install LDAP in Docker php-fpm alpine

Yii2 redirecting to previous page after login

Getting error: CodeIgniterDatabaseBaseResult::getResult in CodeIgniter

Laravel - Implicit route model binding with soft deleted data

How do I enable error reporting in Laravel?

str_replace or preg_replace random number from string

Transpose and flatten two-dimensional indexed array where rows may not be of equal length

Laravel update hasMany relationship using saveMany

PHP file_get_contents function

Group data in a multidimensional array based on two columns

Sort multidimensional array by column value within a column

How to set dynamic `home` and `siteurl` in WordPress?

get attribute from class not working php 7

How to fix " Uncaught TypeError: Argument 1 passed to JpGraphException::defaultHandler() " problem in php 7.1.3 and jpgraph 4.2.6?

Add bold text and line break into Laravel Notification Email

About Contact Privacy policy Terms and conditions