thomas2340
Posts: 55
|
| Posted: 09/24/2004, 12:02 PM |
|
hi,
iam using the gdlibrary with php4 to resize an uploaded picture. it works, but i dont know what event i must use in ccstudio ?
the after process file event doesnt work, the file is uploaded, but not resized, if i put the following lines into the before show event, of the upload formular it works.
i also dont know how to get the value of the uploaded picture name into a variable ?
thanx for your answers ...
$filename = "../uploads/test.jpg";
makeThumbnail($filename,"../pictures/1b.jpg",100);
in common.php i have put the my function makeThumbnail.
|
 |
 |
Nicole
Posts: 586
|
| Posted: 09/27/2004, 6:01 AM |
|
Thomas,
You can try resize code in Before Build Insert and Update events. They are executed before file uploading. You can retrieve file name using code:
echo $form_name->FileUploadname->GetValue();
but what prevents you from resizing uploaded file in After Process File event? You can get a file name there using the same code.
_________________
Regards,
Nicole |
 |
 |
|