If using ftp storage, when you edit an existing download, the existing files are removed. On saving, the storage engine attempts to upload the file from the local /downloads directory but fails as the file does not exist;
try
{
if( $r['record_type'] == 'ss' )
{
$this->connection->chdir( $this->settings['idm_remotesspath'] );
$this->connection->upload( $this->image_path . "/" . $r['record_location'], $newLocation );
}
else
{
$this->connection->chdir( $this->settings['idm_remotefilepath'] );
$this->connection->upload( $this->file_path . "/" . $r['record_location'], $newLocation );
}
}
catch( Exception $e )
{
var_dump($this->settings['idm_remotefilepath'], $r['record_location'], $e); exit;
return false;
}