• 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

wordpress function breaks wp-admin

nginx err_connection_refused, can anyone help me?

Using spatie/media-library, how to rename a collection of uploaded files?

Adding Multiple Custom Post Types in Wordpress

Coinpayments create_transaction "ERROR: Invalid command!"

Best way to scrolldown onpageload

HTML and PHP in one file

Laravel 5 controller sending JSON integer as string

AJAX call fails with SyntaxError: Unexpected end of JSON input

Laravel UUID generation

Unable to guess the mime type as no guessers are available Laravel 5.2

PHP only Hit Counter?

How do I refresh a DIV content?

How to display table header in every page using FPDF library?

Laravel Factory not calling callback 'afterCreating'

About Contact Privacy policy Terms and conditions