• 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/HTML: Creating A SubMenu

how to insert data into select2 search input after scan using qrcode

Open a popup box after receiving result from ajax

CodeIgniter 4: Like and Dislike Functionality

Lexik JWT authentication problem "Invalid credentials"

Using if(isset($_POST['submit'])) to not display echo when script is open is not working

how to pass row id in href of a tag in codeigniter controller?

Popup Window and PHP form

Can't call javascript alert alertify library from PHP

Pass a select with mysqli_fetch_row to a table

How do I loop through an MS SQL database with VB.NET?

protect images from being copied

Pass an image through AJAX [duplicate]

PHPUnit (Phar) Fatal Error Only When Test Fails

PHP: Telegram Bot: Insert line break to text message

About Contact Privacy policy Terms and conditions