• 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

I want to use codeigniter foreign character library in my custom PHP project how i can use it?

PHPExcel_IOFactory::createWriter causes wrong behaviour

Laravel: HTML in notification

Make Shipping Method fields Mandatory on Woocommerce checkout page

How to use React Router with Laravel?

Get image type from base64 encoded src string

Two buttons one form

How to fix Call to undefined method AppModelsTableName::factory?

Toggle between a textbox and a select using PHP

Lexik JWT authentication problem "Invalid credentials"

PHP SoapClient: set a namespace without prefix

HTML and PHP in one file

Issue saving card for customer

How to get total pages of PDF with FPDF?

Facebook SDK error: Cross-site request forgery validation failed. Required param "state" missing from persistent data

About Contact Privacy policy Terms and conditions