func (v *FileCollectionView) AddFile(name, ctype string, content []byte) error {
	if _, ok := v.col.files[name]; ok {
		return errors.Errorf("'%s' already exists in the collection", name)
	}
	v.SetFile(name, ctype, content)
	return nil
}
// AddFile adds the requested attachment. Returns an error if it already exists.
AddFile adds the requested attachment. Returns an error if it already exists.
// AddFile adds the requested attachment . Returns an error if it already exists .
func (v *FileCollectionView) AddFile(name, ctype string, content []byte) error {
	if _, ok := v.col.files[name]; ok {
		return errors.Errorf("'%s' already exists in the collection", name)
	}
	v.SetFile(name, ctype, content)
	return nil
}
func ( v * FileCollectionView ) AddFile ( name , ctype string , content [ ] byte ) error { if _ , ok := v . col . files [ name ] ; ok { return errors . Errorf ( " " , name ) } v . SetFile ( name , ctype , content ) return nil }
AddFile adds the requested attachment.
AddFile adds the requested attachment .