This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (isset($_POST["PHPSESSID"])) { | |
session_id($_POST["PHPSESSID"]); | |
} | |
session_start(); | |
if (!isset($_FILES["Filedata"]) || !is_uploaded_file($_FILES["Filedata"]["tmp_name"]) || $_FILES["Filedata"]["error"] != 0) { | |
// Usually we'll only get an invalid upload if our PHP.INI upload sizes are smaller than the size of the file we allowed | |
// to be uploaded. | |
header("HTTP/1.1 500 File Upload Error"); |