• 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 mysql + create a friend request system

Is there an equivalent of DynamoDB on Azure as a PHP session Handler

SQL AVG() to 2 decimals

How do I Post to .txt document before form submits

How to solve Duplicate entry '0' for key 'PRIMARY' in Wordpress?

PHP 8 - libxml_disable_entity_loader() has been deprecated. How do I replace the functionality it provides?

How to fix this error : Ask your hosting provider to use PHP 7.2.5 or higher for both HTTP and CLI?

Group data in a multidimensional array based on two columns

how to youtube api data to print in toolset metabox using a button click before save-post

Add a text next to stock quantity if it is less than 10 in Woocommerce single product

Upgrade PHP on AWS Linux

Dynamic table in HTML using MySQL and php

how to upload binary image to sql server using php laravel

How to get array values using foreach in laravel

Spam Filter in Contact Form

About Contact Privacy policy Terms and conditions