• 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

PHP Include for HTML?

Whats the point of running Laravel with the command 'php artisan serve'?

PHPMetrics option --excluded-dirs="myfolder" : myfolder dir is not excluded within docker

Nginx RTMP not recording

MySQL - Connection failed: No route to host

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

jQuery Ajax Post with data

Store multiple fields in JSON column (Nova CMS)

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

"Mixed content blocked" when running an HTTP AJAX operation in an HTTPS page

PHP Include for HTML?

Pass a select with mysqli_fetch_row to a table

Submitting a form with ajax in Wordpress

WordPress + Nginx on non-standard port behind AWS ELB results in broken links

PHP Download MP3 files from directory on server

About Contact Privacy policy Terms and conditions