               file.creator = me
               file.created = now
               file.group = group
+              file.graphic = graphic
               figure.files.push file
               do (d = defer file.file2id) ->
                 file.callback = (file2) ->

  unless importer?
    console.warn "Unrecognized import format '#{format}'"
    return
  for file in files
    reader = new FileReader
    reader.onload = (e) ->
      importer group, e.target.result
    reader["readAs#{importer.readAs}"] file


        await
          for figure in attach
            figure.files = []
            for graphic in figure.graphics
              filename = graphic.filename
              base = basename filename
              file = new File [zip.files[filename].asArrayBuffer()],
                       base,
