anonfiles 0.3.0 copy "anonfiles: ^0.3.0" to clipboard
anonfiles: ^0.3.0 copied to clipboard

discontinued

AnonFiles HTTP client based on uno. Support for AnonFiles, FileChan and LetsUpload.

example/anonfiles.dart

import 'dart:io';
import 'dart:typed_data';

import 'package:anonfiles/anonfiles.dart';

void main() async {
  final Uint8List bytes = File('example/sample.txt').readAsBytesSync();
  const String filename = 'sample.txt';

  // https://anonfiles.com/docs/api
  print('[AnonFiles]:');
  final AnonFiles anonFiles = AnonFiles();
  await for (final AnonFileUploadEvent event
      in anonFiles.upload(bytes: bytes, filename: filename)) {
    print('Event: $event');
  }

  // https://filechan.org/docs/api
  print('[fileChan]:');
  final FileChan fileChan = FileChan();
  await for (final AnonFileUploadEvent event
      in fileChan.upload(bytes: bytes, filename: filename)) {
    print('Event: $event');
  }

  // https://letsupload.cc/docs/api
  print('[letsUpload]:');
  final LetsUpload letsUpload = LetsUpload();
  await for (final AnonFileUploadEvent event
      in letsUpload.upload(bytes: bytes, filename: filename)) {
    print('Event: $event');
  }
}
0
likes
0
pub points
0%
popularity

Publisher

verified publisheralexrintt.io

AnonFiles HTTP client based on uno. Support for AnonFiles, FileChan and LetsUpload.

Repository (GitHub)
View/report issues

Documentation

Documentation

Funding

Consider supporting this project:

github.com
donate.alexrintt.io

License

unknown (license)

Dependencies

freezed_annotation, json_annotation, uno

More

Packages that depend on anonfiles