Author Topic: Image Upload  (Read 762 times)

Offline Crazy-T

  • Level 19
  • *
  • Posts: 197
  • Reputation: +0/-0
  • Building Games
    • View Profile
Image Upload
« on: October 31, 2009, 10:14:32 PM »
Hey!

The question is, What is the best way to make a image upload file, so users can upload images ect. Because i've heard loads of stuff about the image uploads. So thats the question.. ;D
Crazy-T

Offline Nox

  • Level 35
  • **
  • Posts: 767
  • Reputation: +12/-2
    • View Profile
Re: Image Upload
« Reply #1 on: November 01, 2009, 04:00:10 AM »
I don't really follow... you make input[type=file] and then verify file in php, (resample it,) rename it, move it to target folder...
Then you have some JS things but they mostly just handle adding/removing inputs...those more complex... I think they're suitable more for social site/cms...

Maybe you can share something from the "loads of stuff," although maybe it's just me who don't understand
Meet us at an IRC irc.freenode.net #bbg as well
https://vimeo.com/36579366 (a must-watch) | Join BOINC - no longer a hype, but you can help never the less

Offline Crazy-T

  • Level 19
  • *
  • Posts: 197
  • Reputation: +0/-0
  • Building Games
    • View Profile
Re: Image Upload
« Reply #2 on: November 01, 2009, 08:13:54 AM »
I don't really follow... you make input[type=file] and then verify file in php, (resample it,) rename it, move it to target folder...
Then you have some JS things but they mostly just handle adding/removing inputs...those more complex... I think they're suitable more for social site/cms...

Maybe you can share something from the "loads of stuff," although maybe it's just me who don't understand
Well its for my game, i want to allow people to be able to upload images into there gallery. Yeah, like people infecting images with php code, ect, uploading php files... but stopping php files uploaded is easy, im just like on about infecting images...
Crazy-T

Offline Xavier

  • Level 9
  • *
  • Posts: 52
  • Reputation: +1/-1
    • View Profile
Re: Image Upload
« Reply #3 on: November 01, 2009, 09:24:16 AM »
You should be able to find some tutorials and libraries about image upload validation. Maybe these would be helpful:

http://www.phpclasses.org/browse/package/5548.html
http://www.bitrepository.com/how-to-validate-an-image-upload.html

Offline Crazy-T

  • Level 19
  • *
  • Posts: 197
  • Reputation: +0/-0
  • Building Games
    • View Profile
Re: Image Upload
« Reply #4 on: November 02, 2009, 02:59:06 PM »
Ok thanks for the links/info ect.
Crazy-T

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal