Yes - in Symfony we must also move file from temt to target. Do You use some catching errors or rather not ?
On 4 Lis, 15:04, Eno <[email protected]> wrote: > On Wed, 4 Nov 2009, dziobacz wrote: > > For example upload photo on the server - for example in normal PHP in > > this tutorial:http://www.tizag.com/phpT/fileupload.php > > We have catching errors: > > if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], > > $target_path)) > > { > > echo "The file ". basename( $_FILES['uploadedfile']['name']). > > " has been uploaded"; > > } > > else > > { > > echo "There was an error uploading the file, please try again!"; > > } > > The code above is to handle errors moving the file *after* it has been > uploaded... > > -- --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---
