• 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

Add bold text and line break into Laravel Notification Email

Submitting a form with ajax in Wordpress

Get Header Authorization value of a login api (sent with username and password in json body) using php curl

CodeIgniter 4: Like and Dislike Functionality

Transform array, set each array element with parent key php

Add Class in html Dynamically in PHP

PHPExcel file download using AJAX call

str_replace or preg_replace random number from string

I want a way to give path to my files which are outside of public folder in laravel

What's the net::ERR_HTTP2_PROTOCOL_ERROR about?

Detect emoticons in string

PHP -> Next nearest date defined by array of days in week

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

Custom API and cunsuming in php?

How to make a array inside array?

About Contact Privacy policy Terms and conditions