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 1011071
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T09:10:47+00:00 2026-05-16T09:10:47+00:00

I have a form which uploads multiple file fields into a db using codeigniter.

  • 0

I have a form which uploads multiple file fields into a db using codeigniter.

I need to be able to upload multiple files for each field. I understand that this could be achieved using some jquery magic, however, my problem is how do I intercept the multiple files and what is the best way to store them in my database?

At the minute I just have one field which stores the file location/name, would I need to insert all the files as one long comma seperated string? If so, how do I then make use of that string for my view functions to show each file?

Sorry if the above doesn’t make sense, I can explain in more detail or post my code if required.

Thanks for any help in advance

Dan

  • 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-16T09:10:48+00:00Added an answer on May 16, 2026 at 9:10 am

    It pains me to say this, but the best method of uploading multiple files at once is to use a plugin like Uploadify.

    With regard to how you’d like to store it in the database…If you’re allowing a single user to upload multiple files, I’d recommend having three tables:

    1. Users (user_id, username, email, etc.)
    2. Files (file_id, filepath, time_uploaded, etc.)
    3. Users_files (user_id, file_id)

    Then when you store the files on your server, you can insert a new row into your “files” table. Then when you delete files, be sure to remove the row in the files table and the association in the users_files table.

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

Sidebar

Related Questions

I have a form which binds a model and a file upload using the
I had another form to upload the details of 1 product which have multiple
I have a multipart form which is supposed to upload a file as well
How to upload multiple files with ->setFileUpload()? For example i have this: <form method=post
Say I have a form that allows users to upload multiple images, which are
I have a form which I am using to upload users photos but the
I've added a form to my webpage which allows for multiple file uploads. I
I am using uploadify plugin of jquery and have set multiple files upload to
I have an application which uploads files to Google App Engine. Upload works OK
i have form in drupal which uploads images and has got few checkboxes in

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.