I think you want to create a thumbnail right after upload?
this does not work your way
- send_thumb only sends it - it does not write a thumb the way you like (only in my thumb dir in an encoded way). if you want a thumb with your name:
you have to use resize_file - the last parameter is the destination
$thumb = "thumbs/" . basename($dir) . "_" . $file['name'];
resize_file( $filename, 200, 80, $file['name'], $thumb);
if (!file_exists($thumb)) {
copy ($filename, $thumb);
}
you have to copy because resize does only resize images that are too big
.
the last parameter only exists in the latest version of the tfu_helper.php
/michael