Menu

[r491]: / swfupload / trunk / demos / multiuploaddemo / upload.php  Maximize  Restore  History

Download this file

27 lines (24 with data), 864 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
$session_id = isset($_POST["PHPSESSID"]) ? $_POST["PHPSESSID"] : false;
if ($session_id) {
session_id($session_id);
}
session_start();
//$upload_path = str_replace("\\", "/", realpath(dirname($_SERVER['SCRIPT_FILENAME']))) . "/uploads/";
//$upload_path = "uploads/";
// Handle the upload
//if (!move_uploaded_file($_FILES["Filedata"]["tmp_name"], $upload_path . $_FILES["Filedata"]["name"])) {
// header("HTTP/1.0 500 Internal Server Error");
//}
// Delete the file. We don't want it.
//@unlink($upload_path . $_FILES["Filedata"]["name"]);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>SWFUpload Revision 6 Demo</title>
</head>
<body>
<p>Upload Page</p>
</body>
</html>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.