PHP drag and drop upload file php - Net-Raft.com

Welcome aboard! We are happy you are here and wish you good net-raft!




Just a Web Code Solution

drag and drop upload file using php


 1625

Show Result
upload_file.js
upload_file.css
PHP


2

<!doctype html>
<html>
<head>
<script src="https://code.jquery.com/jquery-2.1.3.min.js" type="text/javascript"></script>
<script src="/project/xPeterx/sl_8TuurIBmwB201960764/upload_file.js" type="text/javascript"></script>
<link href="/project/xPeterx/sl_8TuurIBmwB201960764/upload_file.css" type="text/css" rel="stylesheet">

<style>
</style>

</head>
<body>

<div id="DragAndDrop"><span id="child">Drag And Drop Files - Here</span></div>
<p></p>
<div id="upload_info"></div>

</div>
</body>
</html>

// upload.php
<?php
if(is_array($_FILES))
{
if(is_uploaded_file($_FILES['file']['tmp_name'])) {
$sourcePath = $_FILES['file']['tmp_name'];
$targetPath = "/project/xPeterx/sl_8TuurIBmwB201960764/".$_FILES['file']['name'];
if(move_uploaded_file($sourcePath,$targetPath)) {
?>

<?php
exit();
}
}
}
?>


By     Created   
The power of the user (%)
12%



The most helpful PHP solutions

detect browser phpdetect browser phpPHP

Click to see more ...

  3.7K     388

create QR code phpcreate QR code phpPHP

Click to see more ...

  2.3K     274

delete array item phpdelete array item phpPHP

Click to see more ...

  1.9K     231

create relative date phpcreate relative date phpPHP

Click to see more ...

  1.5K     216

detect ie phpdetect ie phpPHP

Click to see more ...

  1.2K     209

get current url phpget current url phpPHP

Click to see more ...

  824     189

Get real client country using php ?Get real client country using php ?PHP

Click to see more ...

  655     169

drag and drop upload file using phpdrag and drop upload file using phpPHP

Click to see more ...

  1.6K     141

get meta tag phpget meta tag phpPHP

Click to see more ...

  567     129

detect speed internet phpdetect speed internet phpPHP

Click to see more ...

  546     106