- Author:
- David Nickerson <nickerso@users.sourceforge.net>
- Date:
- 2010-05-04 12:37:19+12:00
- Desc:
- adding initial version of SED-ML L1V1 file reproducing what is in graphs/BR-INa-variants.xml
- Permanent Source URI:
- https://models.cellml.org/workspace/a1/rawfile/a80b964384c0c7683d7c5d07b73a5af7a973d46c/dojo-presentation/js/dojo/dojox/form/resources/UploadFile.php
<?php
$upload_path = "../resources/"; //relative to this file
$download_path = "../resources/"; // relative to the HTML file
move_uploaded_file($_FILES['Filedata']['tmp_name'], $upload_path . $_FILES['Filedata']['name']);
$file = $upload_path . $_FILES['Filedata']['name'];
$type = exif_imagetype($file);
list($width, $height) = getimagesize($file);
//$type2 = exif_imagetype($_FILES['Filedata']['tmp_name']);
error_log("file: " . $file );
error_log("type: " . $type );
//error_log("type2: " . $type2 );
error_log("temp: " . $_FILES['Filedata']['tmp_name']);
error_log("file: " . "./images/".$_FILES['Filedata']['name']);
$data ='file='.$file.',width='.$width.',height='.$height;
echo($data);
?>