• 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

PHP: Print caught exception like Xdebug

How to get the survey List from surveygizmo API in the Postman?(Trial Version)

ConstraintViolationListInterface to Exception in Symfony

How can I access an array/object?

How to separate letters and digits from a string in php

carbon generated datetime not stored correctly into the database

PHP my timezone is no setting up in PHP.ini File in xampp

Symfony 4: "Autowire: you should configure its value explicitly."

Laravel phpunit test failing authorization

Composer fails with kylekatarnls/update-helper on new homestead

Explode not working properly with dash

jQuery Ajax Post with data

How to display MySQL table using php and edit it in a web browser

Symfony Make:Migration : The metadata storage is not up to date, please run the sync-metadata-storage command to fix this issue

How to install ZeroMQ for PHP on an Alpine Linux container?

About Contact Privacy policy Terms and conditions