func (r *Repo) ImportFile(ctx context.Context, f inputFile, reporter progress.ReportFunc) error {
	if _, err := r.CurrentUser(); err != nil {
		return err
	}
	b, err := f.Bytes()
	if err != nil {
		return err
	}
	z, err := gzip.NewReader(bytes.NewReader(b))
	if err != nil {
		return err
	}
	defer func() { _ = z.Close() }()
	return r.Import(ctx, z, reporter)
}
// ImportFile imports a *.fbb file, as from an HTML form submission.
ImportFile imports a *.fbb file, as from an HTML form submission.
// ImportFile imports a * . fbb file as from an HTML form submission .
func (r *Repo) ImportFile(ctx context.Context, f inputFile, reporter progress.ReportFunc) error {
	if _, err := r.CurrentUser(); err != nil {
		return err
	}
	b, err := f.Bytes()
	if err != nil {
		return err
	}
	z, err := gzip.NewReader(bytes.NewReader(b))
	if err != nil {
		return err
	}
	defer func() { _ = z.Close() }()
	return r.Import(ctx, z, reporter)
}
func ( r * Repo ) ImportFile ( ctx context . Context , f inputFile , reporter progress . ReportFunc ) error { if _ , err := r . CurrentUser ( ) ; err != nil { return err } b , err := f . Bytes ( ) if err != nil { return err } z , err := gzip . NewReader ( bytes . NewReader ( b ) ) if err != nil { return err } defer func ( ) { _ = z . Close ( ) } ( ) return r . Import ( ctx , z , reporter ) }
ImportFile imports a *.fbb file, as from an HTML form submission.
ImportFile imports a * . fbb file as from an HTML form submission .