CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 upload pictures and resize

Print topic Send  topic

Author Message
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.

View profile  Send private message
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
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.