BUGFIX: remove unnecessary write from uploading routine

This commit is contained in:
Mateusz Uzdowski 2012-04-18 15:21:13 +12:00
parent 5d7f6a0d69
commit 47d7392e88

View File

@ -477,7 +477,6 @@ class UploadField extends FileField {
} else {
// The file has been uploaded successfully, attach it to the related record.
$file = $this->upload->getFile();
$file->write();
$this->attachFile($file);
// Collect all output data.