• 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

Message: Set sys_temp_dir in your php.ini after installed composer

how to create html table in php

User pool client {id}does not exist

Ajax GET request fails in laravel 8

Passing PHP JSON to Javascript: echo json_encode vs echo json declaration

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

PHP AWS Cognito 'Error executing "SignUp" : ResourceNotFoundException : User pool client XXXX does not exist

How to pass security cloudflare server with php curl

Target class controller does not exist - Laravel 8

Add bold text and line break into Laravel Notification Email

Send same name multiple checkbox values via ajax

Attempt to read property "view" on null when sending password reset email

Call to a member function givePermissionTo() on null

Store multiple fields in JSON column (Nova CMS)

onKeyUp event calculation not working on the following rows from php generated forms except the first one

About Contact Privacy policy Terms and conditions