Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 547679
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T10:59:58+00:00 2026-05-13T10:59:58+00:00

In codeigniter I am creating an application that allows the user to upload multiple

  • 0

In codeigniter I am creating an application that allows the user to upload multiple files in one go, to this I am using this library, http://www.mitesdesign.com/blog/open-source/multi-upload-jquery-code-igniter

My question is if there are multiple images that have been upload how do I define the source image in the $config, so far I have done this,

                    $gd['image_library'] = 'gd2';
            $gd['source_image'] = '';
            $gd['create_thumb'] = TRUE;
            $gd['maintain_ratio'] = TRUE;
            $gd['width'] = 164;
            $gd['height'] = 103;
            $this->load->library('image_lib', $gd);
            $this->image_lib->resize();

as you can see the source_image is empty as I do not know how to get all the images that the user has upload.

Can anyone suggest anything?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T10:59:58+00:00Added an answer on May 13, 2026 at 10:59 am

    Looking at the Multi_upload library supplied in the ZIP in this article, all you have to do is this:

    $files = $this->multi_upload->go_upload();
    

    That will return a multi-dim array like this:

                            'name' => $CI->upload->file_name,
                            'file' => $CI->upload->upload_path.$CI->upload->file_name,
                            'size' => $CI->upload->file_size,
                            'ext' => $CI->upload->file_ext,
                            'image_type' => $imageVar->image_type,
                            'height' => $imageVar->height,
                            'width' => $imageVar->width
    

    Then just foreach through and use those details in your resizing code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 515k
  • Answers 515k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Try: set(gca, 'Layer','top') according to the documentation page: Layer {bottom}… May 16, 2026 at 6:37 pm
  • Editorial Team
    Editorial Team added an answer I got it working but it doesn't feel very clean… May 16, 2026 at 6:37 pm
  • Editorial Team
    Editorial Team added an answer class TagParser(HTMLParser): def __init__(self, url, tag): HTMLParser.__init__(self) self.tag = tag… May 16, 2026 at 6:37 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I'm looking for an introduction in creating application using CodeIgniter and Integrating it to
I'm creating a calendar application in PHP with CodeIgniter. In the main calendar page,
I am using codeigniter's session class to handle my PHP sessions. One of the
I am creating an intranet application in php that is running on a client's
I am creating a modular CMS using the codeigniter framework, the main asset directory
I am using CodeIgniter, and in one of my models I would like to
As a feature of the application I am creating - I wish to enable
I am going to create a new web application that is very customized. It
I have a PHP web application built with CodeIgniter MVC framework. I wish to
I've starting using Codeigniter for a project recently (few months ago) but its getting

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.