- Author:
- David Nickerson <david.nickerson@gmail.com>
- Date:
- 2021-09-15 12:24:03+12:00
- Desc:
- Updates to FHN model:
* Make sure model is valid OpenCOR CellML Text format;
* Make sure model is valid CellML;
* Add SED-ML for single stimulus experiment.
Using OpenCOR snapshot 2021-09-14
- Permanent Source URI:
- https://staging.physiomeproject.org/workspace/a1/rawfile/a26c8f6bf655d7de97fbc8d4197ca492804c735a/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);
?>