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

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

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.

Posted by VoiDeT

Categorised under PHP
Bookmark the permalink or leave a trackback.

3 Comments

  1. Hi … thnx 4 great script :D

    August 17, 2008 @ 6:44 am
  2. 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.

    August 20, 2009 @ 5:27 am
  3. VoiDeT

    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.

    August 20, 2009 @ 8:55 am

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

or