Sponsor
Now Playing
- Alix Perez – I'm Free 3 hours ago
- Alix Perez – Intersections 3 hours ago
- Alix Perez – Forsaken 3 hours ago
- Glen E Ston – Ouroboros (Original Mix) 3 hours ago
- Black Sun Empire – Everything 3 hours ago
Tutorial: How to make an Image Upload and Thumbnailer Script with cURL
April 8, 2008,
7,169 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.
3 Comments
Hi … thnx 4 great script
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.
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.