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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:02:59+00:00 2026-05-23T09:02:59+00:00

I’m currently in the process of searching for a media upload library for PHP

  • 0

I’m currently in the process of searching for a media upload library for PHP that can manage multiple types of files. Either a single library or a combination of different ones would work equally well.

I could write some simple upload code that checks what type of file, and incorporate some simple security measures, but I’d much rather leave it up to someone else more qualified.

Features I’m looking for in such a library:

  • Checking for file type. I would like the library to have a whitelist of types of files that can be uploaded, and be to able to check if the file uploaded is indeed on that whitelist. The checking process would have to do more than just check the file extension. Example: Only uploading .jpg, .png, .mp3, .avi is allowed.

  • Either a very comprehensive settings page/section or understandable and editable code. I’d like to be able to mold the library to fit the structure of my site, not the other way around.

  • Security checks. I would like there to be a system of security checks to make sure that files are not a possible security threat to my website.

  • Free. I’d rather not buy a library.

Tools I’ve Found So Far:

Due to the universal need for file upload code, there are tons of upload libraries out there, such as:

  • class.upload.php — Manages the uploading, saving, and resizing of images.

  • Pear PHP’s HTTP_Upload — Manages files submitted via HTTP forms.

  • Easy PHP Upload — Validates and manages file upload via Web forms

  • EasyUp — Simply manages file upload.

The problem is, there’s just so many libraries, frameworks, and classes out there that it’s hard to choose one (or multiple to work in combination) and know that it’s going to be reliable and work well.

So, it would be amazing if I could get some recommendations on what in your opinion the best file upload library or libraries are for PHP that contain the features I’m looking for!

Thanks a ton!

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

    Well, it depends on just what you want uploaded. Is it just images? Text files? Videos?

    At any rate, a library wouldn’t actually be needed because PHP has a very powerful built in upload function.

    This page here shows a good example of how to make a basic form and implementing some basic security checks, including checking the file extension. PHP is very secure as it is, though you’ll have to decide for yourself what file extensions you will accept. Generally, it’s best to choose specifically what you will accept, rather than limiting out a few high risk files only. For example, unless they’re needed and you want to support them, avoid supporting archives (such as 7z, bz2, or zip) or executables.

    As well, if you want to put a very basic virus scan into the newly uploaded file, you can use a method similar to this one.

    You want to be able to meld your site around the desired library? Using PHP lets you do that better than anything, and it’s relatively simple to do.

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

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have thousands of HTML files to process using Groovy/Java and I need to
I'm trying to create an if statement in PHP that prevents a single post
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want to count how many characters a certain string has in PHP, but
I would like to count the length of a string with PHP. The string
I have a jquery bug and I've been looking for hours now, I can't
this is what i have right now Drawing an RSS feed into the php,

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.