Web Analytics Made Easy -
StatCounter Need a secure image upload - CodingForum


No announcement yet.

Need a secure image upload

  • Filter
  • Time
  • Show
Clear All
new posts

  • Need a secure image upload

    Looking to build an upload file script where people can upload images from their computer. I know a little bit about it, but never done one before.

    Basically it needs to have the following.

    Formats: jpg, jpeg, gif, bmp, png
    Max Filesize: 500kb
    Max Height & Width: 500px X 500px

    Is there any premade scripts like this I can use? I want to make sure it's restricted to those formats, I don't want viruses or scripts uploaded.

    Been a sign maker for 8 years. My business:
    American Made Signs

  • #2

    seems like quite a good, in depth pdf on the subject Just found it right this second, was an interesting read. Would maybe like someone to confirm it's accuracy though? Makes sense to me.
    Useful function to retrieve difference in times
    The best PHP resource
    A good PHP FAQ
    PLEASE remember to wrap your code in [PHP] tags.
    PHP Code:
    // Replace this
    // With this
    // Then check for values/forms. Some IE versions don't send the submit button 
    Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.


    • #3
      There are many pre-made image upload scripts out there. Choosing the right one depends on your needs and complexity requirements (whether it uses ajax or not).

      Here is one I found: http://www.cafewebmaster.com/smart-m...f-jpeg-png-php