Welcome Guest, Not a member yet? Register   Sign In
uploading picture
#1

(This post was last modified: 08-09-2016, 01:26 AM by davy_yg.)

I need someone to help me fix this error message:

404 Page Not Found
The page you requested was not found.

After uploading picture and press upload it carries me to this :


views/addslideshows.php


PHP Code:
<td>
                <
div style="margin-left: 80px;">
 
               <div class="row">
                <
br><br>
                
 
                   <div class="col-md-12">
                        <
label for="filename" class="control-label">Select File to Upload</label
 
                   </div>
 
               </div>
                                
                <
div class="form-group">
 
               <div class="row">
 
                   <div class="col-md-12">
 
                       <input type="file" name="filename" size="20" />
 
                       <span class="text-danger"><?php if (isset($error)) { echo $error; } ?></span>
                    </div>
                </div>
                </div>
            
                <div class="form-group">
                    <div class="row">
                        <div class="col-md-12">
                            <input type="submit" class="edit" value="Upload File" class="btn btn-primary"/>
                        </div>
                    </div>
                </div>
                </div>
            <?php /* </div> */ ?>
            </td> 



controllers/cuploadfile.php


PHP Code:
function upload()
 
   {
 
       //set preferences
 
       $config['upload_path'] = 'uploads/';
 
       $config['allowed_types'] = 'jpg|gif';
 
       $config['max_size'   '500000';

 
       //load upload class library
 
       $this->load->library('upload'$config);

 
       if (!$this->upload->do_upload('filename'))
 
       {
 
           
            
// case - failure
 
           $upload_error = array('error' => $this->upload->display_errors());
 
           // $this->load->view('upload_file_view', $upload_error);
            
$this->load->view('addslideshows'$upload_error);
 
       }
 
       else
        
{
 
           
            
// case - success
 
           $upload_data $this->upload->data(); 
 
           $data['success_msg'] = '<div class="alert alert-success text-center">Your file <strong>' $upload_data['file_name'] . '</strong> was successfully uploaded!</div>';
 
           // $this->load->view('upload_file_view', $data);
            
            
$this->Mpages->add_slideshow();
            
            
$this->load->view('addslideshows'$data);
                        
 
       }
        
                
 
   

Can anyone help me figure this thing out?
" If I looks more intelligence please increase my reputation."
Reply


Messages In This Thread
uploading picture - by davy_yg - 08-07-2016, 10:29 PM
RE: uploading picture - by davy_yg - 08-18-2016, 08:31 PM
RE: uploading picture - by wolfgang1983 - 08-22-2016, 07:23 PM
RE: uploading picture - by Fallebdi - 08-22-2016, 03:14 AM
RE: uploading picture - by davy_yg - 08-28-2016, 07:30 PM
RE: uploading picture - by ciadmin - 08-28-2016, 10:00 PM
RE: uploading picture - by davy_yg - 08-29-2016, 12:54 AM
RE: uploading picture - by salain - 08-29-2016, 02:50 AM
RE: uploading picture - by InsiteFX - 08-29-2016, 05:21 AM
RE: uploading picture - by davy_yg - 08-30-2016, 12:02 AM
RE: uploading picture - by wolfgang1983 - 08-30-2016, 12:30 AM
RE: uploading picture - by davy_yg - 08-30-2016, 12:38 AM
RE: uploading picture - by wolfgang1983 - 08-30-2016, 12:41 AM
RE: uploading picture - by davy_yg - 08-30-2016, 01:04 AM
RE: uploading picture - by salain - 08-30-2016, 01:09 AM
RE: uploading picture - by davy_yg - 08-30-2016, 01:45 AM
RE: uploading picture - by wolfgang1983 - 08-30-2016, 05:09 AM
RE: uploading picture - by salain - 08-30-2016, 02:09 AM
RE: uploading picture - by davy_yg - 09-12-2016, 11:01 PM



Theme © iAndrew 2016 - Forum software by © MyBB