http://www.google.co.za/search?sourceid=chrome&ie=UTF-8&q=php+file+exists
<http://www.google.co.za/search?sourceid=chrome&ie=UTF-8&q=php+file+exists>Google is your friend. On Thu, Feb 10, 2011 at 12:35 PM, Manu <emmanuel.parf...@gmail.com> wrote: > I use a custom validator to keep the filename during the upload : > > class mySfValidatorFile extends sfValidatorFile > { > > protected function configure($options = array(), $messages = > array()) > { > parent::configure(); > $this->addOption('validated_file_class', 'mysfValidatedFile'); > } > } > > class mysfValidatedFile extends sfValidatedFile > { > public function generateFilename() > { > return $this->getOriginalName(); > } > } > > > > How can I check if the filename already exists in the folder ? > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > You received this message because you are subscribed to the Google > Groups "symfony users" group. > To post to this group, send email to symfony-users@googlegroups.com > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en > -- Gareth McCumskey http://garethmccumskey.blogspot.com twitter: @garethmcc identi.ca: @garethmcc -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en