• 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

Passing PHP JSON to Javascript: echo json_encode vs echo json declaration

Can't call javascript alert alertify library from PHP

how to sort by a custom appended relation to model

Remove categories with all childs derived from parent category

Laravel Sanctum CSRF not authenticating

Add rows to Single product Additional information table in WooCommerce 3.6

args[max_input] woocommerce if statement confused

Transpose multidimensional array and join values with commas

WooCommerce: Add/display Product or Variation custom field everywhere

How to separate letters and digits from a string in php

Composer Curl error 60: SSL certificate problem: unable to get local issuer certificate

Sentry on Symfony: how to exclude `NotFoundHttpException`

How can I remove the "Advanced" panel of all blocks in WordPress block editor?

PHP Print to Network Printer

Is there a way to correctly use sanitize_text_field and wp_unslash that doesn't cause psalm to error with "expects string, possibly different type"

About Contact Privacy policy Terms and conditions