getTmpName(); } function getMimeType() { return $this->getType(); } function move($dest) { move_uploaded_file($this->getTmpName(), $dest); } function isUploaded() { return is_uploaded_file($this->getTmpName()); } function isValid() { return $this->getError() == UPLOAD_ERR_OK; } function getContents() { return file_get_contents($this->getTmpName()); } function destroy() { unlink($this->getTmpName()); } } ?>