Skip to content

Instantly share code, notes, and snippets.

@wowo
Created June 1, 2012 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wowo/2852356 to your computer and use it in GitHub Desktop.
Save wowo/2852356 to your computer and use it in GitHub Desktop.
<?php
use Symfony\Component\Validator\Constraints as Assert
class ObjectRecievingMultiplieFilesFromForm
{
/**
* @Assert\All({
* @Assert\File(mimeTypes={"application/vnd.ms-excel", "application/vnd.ms-office"})
* })
* @Assert\Collection(fields={0 = @Assert\NotNull}, allowExtraFields=true)
*/
public $files;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment