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

AnonFiles HTTP client. Support for AnonFiles, FileChan and LetsUpload. Large file upload is supported.

AnonFiles for Dart #

Pub Version Pub Version

This is a library for interacting with AnonFiles related APIs:

Installation #

dependencies:
  anonfiles: ^<latest-version>

Import:

import 'package:anonfiles/anonfiles.dart';

Usage #

The usage is pretty straightforward:

final client = AnonFiles(); // LetsUpload() and FileChan() are also available.

final AnonFileUploadResponse? response = await client.uploadFileBytes(
  byteStream: byteStream,
  filename: filename,
  length: length,
);

final String htmlDownloadUrl = response!.htmlDownloadUrl!;

final String? fileDirectDownloadUrl =
    await client.getDirectDownloadUrl(htmlDownloadUrl);

Check /example for details.

Issues and requests #

Contributing #

  1. First off, fork the repository.

  2. Setup dev environment:

# Clone repo.
$ git clone <your-fork-url>
$ cd anonfiles.dart

# Get deps.
$ dart pub get

# Dart code gen for data models.
$ dart run derry run gen:dart:watch
  1. Commit and push:
git add .
git commit -m "Describe changes"
git push origin main
  1. Open PR.
0
likes
125
points
85
downloads

Documentation

Documentation
API reference

Publisher

verified publisheralexisa.dev

Weekly Downloads

AnonFiles HTTP client. Support for AnonFiles, FileChan and LetsUpload. Large file upload is supported.

Repository (GitHub)
View/report issues

Funding

Consider supporting this project:

github.com
donate.alexrintt.io

License

MIT (license)

Dependencies

freezed_annotation, http, json_annotation

More

Packages that depend on anonfiles