Provide pathname of uploaded file
This commit is contained in:
parent
c4496dd920
commit
8843c26153
@ -10,4 +10,9 @@ class FileUpload extends FormField {
|
|||||||
$this->value=$_FILES[$name]['name'];
|
$this->value=$_FILES[$name]['name'];
|
||||||
$this->file=$_FILES[$name]['tmp_name'];
|
$this->file=$_FILES[$name]['tmp_name'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getTmpPath() {
|
||||||
|
if ($this->error > 0) throw new UploadException("Upload failure", $this->error);
|
||||||
|
return $this->file;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user