anonfiles 0.6.1 anonfiles: ^0.6.1 copied to clipboard
AnonFiles HTTP client. Support for AnonFiles, FileChan and LetsUpload. Large file upload is supported.
AnonFiles for Dart #
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 #
- For security and vulnerability reports, go to security.alexrintt.io.
- For support, questions, bugs and feature requests open a new issue.
Contributing #
-
First off, fork the repository.
-
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
- Commit and push:
git add .
git commit -m "Describe changes"
git push origin main
- Open PR.