re upload file does not delete the old one for UploadToDir
Posted: Tue Jan 27, 2015 7:24 pm
In the handleUpload function, deleting the file if the column already had one does not work.
If I spit out
So, the following code won't work:
also there is a small syntax bug in the same function(valErrros see the 3 'r'):
side note: even if something goes wrong, I do not see the $valErrors beeing passed...probably minor
If I spit out
- Code: Select all
$this->Editor->warnings[] = $row["file_name"];
- Code: Select all
if(strlen($row["file_name"]) > 0)
So, the following code won't work:
- Code: Select all
unlink($this->dataDir.$row["file_name"]);
also there is a small syntax bug in the same function(valErrros see the 3 'r'):
- Code: Select all
$valErrros[] = 'The file could not be moved';
side note: even if something goes wrong, I do not see the $valErrors beeing passed...probably minor