mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-23 09:16:19 +01:00
14 lines
349 B
Dart
14 lines
349 B
Dart
import 'dart:typed_data';
|
|
|
|
import 'package:nc_photos/account.dart';
|
|
import 'package:nc_photos/entity/file.dart';
|
|
|
|
class PutFileBinary {
|
|
PutFileBinary(this.fileRepo);
|
|
|
|
/// Upload file to [path]
|
|
Future<void> call(Account account, String path, Uint8List content) =>
|
|
fileRepo.putBinary(account, path, content);
|
|
|
|
final FileRepo fileRepo;
|
|
}
|