• 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 get an Array value inside an object in an array Php [duplicate]

How to create a cookie to store the timestamp of when a page is first loaded with php

What will the best solution for this multiple optional filter?

How can I stop a symfony process which is listening on http://127.0.0.1:8000

Filter array by skipping every nth element from the end

How do I remove this delivery notification from here?

selected value from the listbox in php

Wordpress 'post_type_link' hides permalink

How can I make a full text index of the column?

Merge key and value of array index [duplicate]

Warning: sqlite_query() expects parameter 1 to be resource, string given

php script to delete files older than 24 hrs, deletes all files

add uri parameter to Route name in laravel

Display Brand Name Above Product Title in Woocommerce Cart, Checkout Page, Orders and Email Notification

Apply filter array/return terms

About Contact Privacy policy Terms and conditions