• 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

What is the difference between client-side and server-side programming?

CSV to PHP class properties

Transfer data between JavaScript and PHP through JSON

Make survey at laravel 5.4 and MySQL

With doctrine ODM, can I embed many subdocuments in a main document?

How to create a video stream from a single dynamic image in PHP

How do I refresh a DIV content?

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

using random function but it's displaying duplicates

No result using makeStyles Material UI in react 18

PHPExcel How to set conditional formatting to change cell background color based on cells values

How to generate QR CODE for dynamic generating link and logo using Simple QrCode in laravel?

How to submit the custom form data in database in WordPress without plugin using ajax?

How to use $this->session->set_userdata in codeigniter

PHP usort() order in case of equality

About Contact Privacy policy Terms and conditions