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.




Comments About Tutorial: How to make an Image Upload and Thumbnailer Script with cURL
// 3 comments so far.
ghprod // August 17th 2008
Hi … thnx 4 great script
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.
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.
You can follow any responses to this entry via its RSS comments feed. You may also leave a trackback by clicking this link.