       fields:
         "Avatar"              :
           label             : "Avatar"
-          itemClass         : KDImageUploadSingleView
-          name              : "avatar"
-          limit             : 1
-          preview           : 'thumbs'
+          cssClass        : 'avatar'
+          limit           : 1
+          preview         : "thumbs"
+          extensions      : null
+          fileMaxSize     : 2048
+          totalMaxSize    : 2048
+          fieldName       : "thumbnails"
+          convertToBlob   : yes
+          title           : ""
+          itemClass         : KDImageUploadView
           actions         : {
             big    :
               [

    @settingsForm = new KDFormViewWithFields formOptions, @getData()

    avatarUploadView = @settingsForm.inputs["Avatar"]

    avatarUploadView.on 'FileReadComplete', ({file, progressEvent})->
      avatarUploadView.$('.kdfileuploadarea').css
        backgroundImage : "url(#{file.data})"
      avatarUploadView.$('span').addClass 'hidden'

    avatarUploadView.on 'FileUploadComplete', (files)->
      for {filename, resource} in files
        console.log {filename, resource}




      isNewGroup = yes
    isPrivateGroup = 'private' is group.privacy

    _updateGroupHandler =(group, formData)=>
      log formData
      formData.avatar = @customUrl if @customUrl
      log formData
      group.modify formData, (err)->
        if err
          new KDNotificationView
