Login Retreive lost passwordRegister
Search

Forum Index / Feedback / filename is not saved as "saveAs"

[ This topic is solved ]

  Ferdinant 16 March 06 / 22:10  
Changed at 16 March 06 / 22:12
Hi,

I try to create a form that gives the user the possibility to upload an image. Then the uploaded image needs to be resized to a 'normal' size and there has to be made a thumb file of it.

Using the following code I assumed that this should work, but it doesn't. Even if I give a name to be used as "saveAs name" it still would not be accepted, but it saves the original filename.

<?php

$oForm     
=     new FormHandler('imageUpload');
$oForm     ->    uploadField('Bestandsnaam'"imageFile"$aUploadnull,($nMax count($aFiles)) ? "" "disabled" );
$oForm    ->    resizeImage("imageFile","large",790,null,100,false);
$oForm    ->    resizeImage("imageFile","thumb",85,null,100,false);
$oForm     ->    submitButton('uploaden','submit', ($nMax count($aFiles)) ? "" "disabled" );
$sHTML     =     $oForm ->flush(true);

?>


I like syntax highlighting ;)

Oh.. I forgot, I'm using the most recent version (1.2) of FH :P

  Ferdinant 16 March 06 / 22:18  
It seems to work now, since I changed the paths.
Altough the paths have been changed, the chmod rights and owner of the folders still are the same,...

I will test it further and report anything if I find it again.

  Ferdinant 16 March 06 / 22:18  
And uhm.. don't pay attention to my BAD english

  Teye Heimans (Founder) 22 March 06 / 19:05  
Problem fixed. Path was incorrect. Solved via MSN.

  Top


powered by PHP-GLOBE   © 2004 - 2012 FormHandler. All rights reserved.   -   Open source license