Reinventing the wheel every time I need to do a site with file upload is getting a bit old. There must be a better way. I've looked for a php uploader class but alot of them seem incomplete, poorly documented, or just plain sketchy.

I'm looking for something that:

  • MIME Type Checking & Reporting
  • File Extension Validation (Make sure it matches the real MIME type)
  • Ease of use... pass in an element from the files superglobal and just have a simple object to deal with from that point

There must be something up to the task... any thoughts?

Recommended Answers

All 2 Replies

Why not make your own upload class? Thats what I did.

Its the best way to make sure it meets all your needs.

Because I have trouble believing that that there isn't a highly tested fully featured class already out there.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.