• 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 rotate matrix counter-clockwise

how to make my own auto increment in php?

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

mysql_result is defined but mysql_free_result warns it expected a resource

VB.NET WebRequest with PHP POST

Refresh specific HTML content that retrieves data from MySQL

merging two arrays with specified index

How to use a PHP MVC Controller, one thats invoked by calling a URL, to call and execute more than one function? [duplicate]

Fetch files from next cloud storage and display in Laravel website

How to connect to MSSQL Server with PHP from Ubuntu 18.04?

Laravel Get Days In Month From Month Number?

How to separate letters and digits from a string in php

Laravel set default language not working

How can I make good efficent AJAX live forms with just jQuery and

How can I get user id from session in javascript?

About Contact Privacy policy Terms and conditions