Part of the EllisLab Network
   
3 of 3
3
Latavish’s Multiple Image Upload with Thumbnail Generation
Posted: 19 November 2009 09:43 AM   [ Ignore ]   [ # 21 ]  
Summer Student
Avatar
Total Posts:  24
Joined  03-27-2008

i totally forget about this post. I have a much better version of this script. i’ll post tonight when I get off the 9 to 5.

 Signature 

———————————
Programming Is an Art

Profile
 
 
Posted: 22 November 2009 09:48 AM   [ Ignore ]   [ # 22 ]  
Lab Assistant
RankRank
Total Posts:  274
Joined  11-06-2008
Latavish - 19 November 2009 09:43 AM

i totally forget about this post. I have a much better version of this script. i’ll post tonight when I get off the 9 to 5.

Hello mate, how is it going with an update?:)

thanks!

Profile
 
 
Posted: 22 November 2009 11:41 PM   [ Ignore ]   [ # 23 ]  
Summer Student
Total Posts:  2
Joined  11-22-2009

I’m also really anxious to see your latest version of your script. I have been working on integrating a cool flash-based solution into a non-CI site.  I would love to get that same type of interface working with CI.  It sounds like that is what you have working but I’m not sure.  I would also love to see a sample of how it looks/works.  Do you have anything up that we could look at?  Anyway thanks for your great contribution to the community

Profile
 
 
Posted: 18 January 2010 04:14 AM   [ Ignore ]   [ # 24 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  341
Joined  12-16-2009

hi to all,

im having an error with my upload script in CI. the image don’t show off in the database and in the folder where it should be put in.

here’s my script:
CONTROLLER:

$config['upload_path'] = './reports/module/';
                
$config['allowed_types'] = 'gif|jpg|png';
                
$config['max_size']    = '100';
                
$config['max_width']  = '1024';
                
$config['max_height']  = '768';
                
$this->load->library('upload', $config);
                
                
$file_data = $this->upload->data();
                
$file_name = $file_data['file_name'];
                
                    
$fields = array(
                
"module_id",
                            
"module_name",
                
"slug",
                
"icon"=>$file_name,            
                            
"report_file_name",
                            
"sql_select",
                            
"sql_filter",
                            
"sql_order"
                            
);

                    foreach (
$fields as $field)
                    
{
                        
if (isset($_POST[$field])) $dt[$field] = $this->input->post($field);
                    
}
                
                    $item
= $this->input->post("item");
                    
$rows = $this->input->post("row0");
                            
                    
$data['item'] = $this->Reports->save($dt,$item,$rows);

MODEL:

function save($data,$item,$details) {
        
if ($item == '') {
            $data[
'link'] = "reports/view";
            
$this->db->trans_start();
            
$this->db->insert('sec_reports', $data);
            
$item = $this->db->insert_id();
            
$this->save_detail($item,$details);                
            
$this->db->trans_complete();
        
}
        
else {
            $this
->db->trans_start();
            
$this->db->where('module_id', $item);
            
$this->db->update('sec_reports', $data);
            
$this->save_detail($item,$details);                
            
$this->db->trans_complete();
        
}
        
return $item;
    
}

help me please..

regards,
kahtrina

 Signature 

“Anything executable is testable”- debug


contact me:

Profile
 
 
   
3 of 3
3
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 819, on March 11, 2010 11:15 AM
Total Registered Members: 120301 Total Logged-in Users: 48
Total Topics: 126418 Total Anonymous Users: 4
Total Replies: 664836 Total Guests: 450
Total Posts: 791254    
Members ( View Memberlist )