• 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 Livewire: jQuery not working in child component loaded via @if statement

Toggle between a textbox and a select using PHP

Distribute array row data to make multiple new rows

How to use React Router with Laravel?

Pass an image through AJAX [duplicate]

Laravel relationship belongsToMany with composite primary keys

str_replace or preg_replace random number from string

CSS file not imported in laravel blade view

Redirect to previous page with php

How to get multiple values with same key from an array PHP

protect my blog content

Hi, I am making a contact form thingy, and my php isn't working any reason why?

Cannot connect to own websocket server when on secured domain

merge all files in directory to one text file

Convert regular text to array using notepad++

About Contact Privacy policy Terms and conditions