• 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 s3 upload file with metadata using pre-signed url

WHM Enabling mod_rewrite

Clients authentication and user authentication with laravel

Upload a file Using PHP and JavaScript

Too few arguments to function PendingResourceRegistration::name(),1 passed in C:xampphtdocsproject outesweb.php on line 18 and exactly 2 expected

How do I remove this delivery notification from here?

How to keep value of selected value after form submission?

Display the default discounted price and percentage on Woocommerce products

PHP date() with timezone?

JQuery content editable div and text box on submit not sending POST

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

User pool client {id}does not exist

Laravel You requested 1 items, but there are only 0 items available

How to give apache permission to write to home directory?

What is my SQL missing?

About Contact Privacy policy Terms and conditions