Welcome aboard! We are happy you are here and wish you good net-raft!
<!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();
}
}
}
?>
The most helpful PHP solutions
detect browser phpPHP Click to see more ... 4.6K 408