• 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

Laravel 5.1 xmlHttpRequest AJAX POST TokenMismatchException

selected value from the listbox in php

PHP Form Not Inserting

I want to display a sweetalert after the inserting of data in my database

How Can I Do LIMIT 1, 2 In WP_Query

Unable to uninstall brew php from homebrew

Show date difference as "20" instead of "20 years ago"

phpunit - testing is painfully slow

Adding one microsecond to Datetime object in PHP

Laravel 5.1 how to use {{ old('') }} helper on blade file for radio inputs

Laravel lang slug in url

hidden INPUT value not available in $_POST

"Notice: Undefined variable", "Notice: Undefined index", "Warning: Undefined array key", and "Notice: Undefined offset" using PHP

How to override header set in Apache config with more specific header in a virtual host

How do I refresh a DIV content?

About Contact Privacy policy Terms and conditions