function upload_handler($file) { $this->add_ping('uploads', array('upload' => str_replace($this->resolve_upload_path(), '', $file['file']))); return $file; }