• 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

Fetch files from next cloud storage and display in Laravel website

how to remove %20 in the url in php

is there any way to validate a field that sometime is File(image) && sometime is String(Src of same image)

protect my blog content

Comma separated list from array with "and" before last element

Entity provider not working in security.yml php symfony3.4 ({"code":401,"message":"bad credentials"}.)

What is PHP's equivalent of JavaScript's "array.every()"?

Laravel - Browser displays message again when I press back button

PHP mail function is sending blank message body

How to find the date a user created their Google account

Laravel database insert with combining array and string

Laravel Displaying image from database

Redirect to previous page with php

Why does array_map() with null as callback create an "array of arrays"?

Match single unknown parameter php (Morse-code Regex)

About Contact Privacy policy Terms and conditions