Can't upload pictures?

Permalink
Hello,
I know I have looked through several questions about not being to upload pictures to my website. Can anyone help me? I am thinking that it might be in the code but not sure? Whenever I tried to upload a new photo it never shows up? When I look at other photos url is different? It says registy/8751 I was looking at my code and it looks like the code to delete a horse is the fancy?horse=8751 Can anyone help me? Here is a copy of the code to see if I am correct in my thinking? I know nothing about web developing the person that built the website will not help and there are no local web developers that understand concrete5. I have uploaded pictures in my file manager but again no pictures will show up. When I try to delete the image (which is not there is does go to a php error page)I am running an older version but again I have no one that can help me update it! Thanks in advance for any help!

[* Creates a new model.
* If creation is successful, the browser will be redirected to the 'view' page.
*/
public function actionCreate()
{
$model=new HorseImages;

// Uncomment the following line if AJAX validation is needed
// $this->performAjaxValidation($model);

if(isset($_POST['HorseImages']))
{
$model->attributes=$_POST['HorseImages'];
if($model->save())
$this->redirect(array('view','id'=>$model->imagesID));
}

$this->render('create',array(
'model'=>$model,
));
}

/**
* Updates a particular model.
* If update is successful, the browser will be redirected to the 'view' page.
* @param integer $id the ID of the model to be updated
*/
public function actionUpdate($id)
{
$model=$this->loadModel($id);

// Uncomment the following line if AJAX validation is needed
// $this->performAjaxValidation($model);

if(isset($_POST['HorseImages']))
{
$model->attributes=$_POST['HorseImages'];
if($model->save())
$this->redirect(array('view','id'=>$model->imagesID));
}

$this->render('update',array(
'model'=>$model,
));
}

/**
* Deletes a particular model.
* If deletion is successful, the browser will be redirected to the 'index' page.
* @param integer $id the ID of the model to be deleted
*/
public function actionDelete($id)
{
$image = $this->loadModel($id);
unlink ('/var/www/c5/sites/fahr/registry/images/large/'.$image['image']);
unlink ('/var/www/c5/sites/fahr/registry/images/thumbnail/'.$image['thumb']);
unlink ('/var/www/c5/sites/fahr/registry/images/original/'.$image['original']);

$image->delete();
header ('Location: /registry/fancy?horse='.$_GET['horse']);]

 
marissa replied on at Permalink Reply
I can go in the website and select and upload photo but then once it is done processing there is no picture! Can anyone help??

This website stores cookies on your computer. These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, see our Privacy Policy.