Tutorial: How to make an Image Upload and Thumbnailer Script with cURL

Meta: April 08th 2008 // PHP // 6,712 views

So we have built a nice extension to our previous tutorial file. Things you might want to look into is obviously try get those extensions installed to test for MIME types, limit file upload sizes, and add a max uploads per time. If you liked this tutorial please let me know! Any questions or comments on the code above ask away. As i said in the other post, angry emo’s aren’t welcome :)

You can download the source from:
Source: thumbcurl.zip
Demo: Here

As the other one, i can host your images, just i have limited the max dimensions so that you don’t rip my bandwidth out.

Pages: 1 2 3 4

WeDecal.com

Postscript: Leave A Comment // Subscribe (RSS Feed)

Comments About Tutorial: How to make an Image Upload and Thumbnailer Script with cURL

// 3 comments so far.

  1. ghprod // August 17th 2008

    Hi … thnx 4 great script :D

  2. Sebastian // August 20th 2009

    Havent watched your code, I’ve tried the demo though. Extensions like JPG, PNG, GIF and all other uppercases, are not accepted. You should use uclower on the relative image path to get it all lower case before you perform the extension check.

  3. VoiDeT // August 20th 2009

    Hi Sebastian.

    Not too sure what you’re talking about here.
    The uppercased filenames are working fine.
    There is no such function uclower also.

    Take a look at this line:
    $filetype = strtolower(strrchr($_POST['srcurl'], ‘.’));

    That lowers the file name.

Who Are You?

Your Email Address

Your Website

:D :) :o :eek: :( :lol: :wink: :arrow: :idea: :?: :!: :evil: :p

You can follow any responses to this entry via its RSS comments feed. You may also leave a trackback by clicking this link.