Provide pathname of uploaded file
This commit is contained in:
parent
c4496dd920
commit
8843c26153
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue