Never experienced anything quite like this...
File handling within PHP script running on BSD server accepts uploaded files from OSX (Mac) computers with seeming any browser; but not from any windows machine regardless of browser...
Any ideas ???
File handling within PHP script running on BSD server accepts uploaded files from OSX (Mac) computers with seeming any browser; but not from any windows machine regardless of browser...
Code:
if(isset($upload)) { // process uploaded file
$allowedExts = array("txt", "csv");
$extension = end(explode(".", $_FILES["file"]["name"]));
if ((($_FILES["file"]["type"] == "text/csv"))
&& ($_FILES["file"]["size"] < 4000000)
&& in_array($extension, $allowedExts))
// write temp file
move_uploaded_file($_FILES["file"]["tmp_name"],
"upload/" . $_FILES["file"]["name"]);
$debug .= "<p>Stored in: " . "/upload/" . $_FILES["file"]["name"]."</p>";
if ($_FILES["file"]["error"] > 0)
{ $debug .="<p>Error: " . $_FILES["file"]["error"] . "</p>"; }
Any ideas ???