• 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 unlink image from folder?

Laravel with App Engine Standard Class 'FacadeIgnitionIgnitionServiceProvider' not found

Check If array is null or not in php

Open a popup box after receiving result from ajax

PHP array slice from position + attempt to return fixed number of items

How can I create a Download Page with post php method?

Adding the custom page with add_menu_page function on Wordpress

Laravel: Create morphs() relationship nullable

Filter WooCommerce products with post__in and additional meta queries

Send Outlook 2010 email using PHP

Symfony run hint kernel.secret parameter not found

Connecting an HTML webpage to a SQL Server

Send same name multiple checkbox values via ajax

Where do I need to place a hook for phpunit?

Add Class in html Dynamically in PHP

About Contact Privacy policy Terms and conditions