• 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

Symfony redirect if already loggedin from login page

How to get unique slug to same post-title for other time too?

Redirect to previous page with php

Converting alphabet letter to alphabet position in PHP [duplicate]

Natural ORDER in Laravel Eloquent ORM

Laravel/docker-compose/redis - Class 'Redis' not found

Why i get wrong output for html markdown?

Batch request Google Calendar php API

Adding reCAPTCHA v2 into my PHP file

get attribute from class not working php 7

Post Form Data To phpmyadmin Database

Symfony - EasyAdmin - Add and remove functions are ignored from AssociationField

php 7 php.ini upload_max_filesize not working

Laravel update hasMany relationship using saveMany

Only on Firefox "Loading failed for the <script> with source"

About Contact Privacy policy Terms and conditions