upload the Image

Permalink
Hi i am making new addon in which i've add a field to load the image
I am use the file set code form the file inbuilt addon
here is the my code that i've place in controller.php file
function getFileID() {return $this->fID;}

function getFileObject() {
return File::getByID($this->fID);
}

function getRelativePath() {
if ($this->fsID == 0) {
$this->loadImages();
} else {
$this->loadFileSet();
}
}

and this one in view.php
<?php $f = $controller->getFileObject();
$fp = new Permissions($f);

$c = Page::getCurrentPage();
if($c instanceof Page) {
$cID = $c->getCollectionID();
}
?>
<p><img src="<?php echo $f->getRelativePath()?>"></p>

what when i am do all the things i am not seen any image.
when i check from the developer tool
i am get the following url
/concrete5/files/
not complete. please help me.
thanks

phpsoftsol