• 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

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

PHP Fatal error: Class not found - PHPUnit

Prestashop webservice API creating cart rules

Add Metadata, headers (Expires, CacheControl) to a file uploaded to Amazon S3 using the Laravel 5.0 Storage facade

How to use React Router with Laravel?

Form Validation and Submission to database

How to show selected value using javascript in laravel

add " ? " in url via htaccess RewriteRule

Laravel websockets AWS EC2 - Connection failed

Set quantity minimum, maximum and step at product level in Woocommerce

Cache clear probem in Larave

Pass an image through AJAX [duplicate]

array_key_exists(): The first argument should be either a string or an integer

PHPExcel file download using AJAX call

How do I refresh a DIV content?

About Contact Privacy policy Terms and conditions