Public feed #378838

Miscellany

public text v1 · immutable
Raw Edit
·published 2007-03-02 20:42 UTC
rendered paste body
if($_FILES['theFile']['size'] > 0) {
        $theType = $_FILES['theFile']['type'];
         if($theType == "application/octet-stream") {
         	$uptarget = "data/".$_FILES['theFile']['name'];
        	if(move_uploaded_file($_FILES['theFile']['tmp_name'],$upTarget)) {
         	$movFile = $upTarget;
        	} else $error = "Unable to upload file.";
        } else $error = "Please select a movie file to be uploaded";
	    }