• 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 display a sweetalert after the inserting of data in my database

How to keep value of selected value after form submission?

Not able to override collapsible.js in magento 2

Split comma separated value from table column into rows using mysql?

Group rows by column and sum another column within groups [duplicate]

php mysql + create a friend request system

how to retrieve the first and last instance of a row in pdo dataset

Display specific shipping method if woocommerce product has specific acf field value

How to Create WooCommerce Subscription Product via. REST API?

Adding the custom page with add_menu_page function on Wordpress

How to generate QR CODE for dynamic generating link and logo using Simple QrCode in laravel?

Display Brand Name Above Product Title in Woocommerce Cart, Checkout Page, Orders and Email Notification

Issue with laravel eloquent model property

Call to a member function fetch_field() on a non-object MySQLiDB

Assign output of PHP function to a variable

About Contact Privacy policy Terms and conditions