it points to this line of code
Code:
$fp = $this->registry->userinfo['permissions']['adminpermissions'] & $this->registry->bf_ugp_adminpermissions['cancontrolpanel'] ? fopen($this->upload['location'], 'wb') : @fopen($this->upload['location'], 'wb');
im not a rocket scientist with php and stuff so i only copied that for someone that is better at it than i am. that line seems to have something to do with your admin permissions. perhaps your uid is not specified in the config.php file as being able to access the admin panel?