Future<FileInfo?> upload( String id, file, { Function(int sent, int total)? onSent, Function(dynamic)? onFail, });