anonfiles library
Classes
- AnonFile
- The file returned by the upload response.
- AnonFileHtmlUrl
-
Holder for the
full
andshort
download links. - AnonFileMetadata
- Metadata returned by the upload response.
- AnonFiles
- Implementation of AnonFilesImplClientBase for https://anonfiles.com/.
- AnonFilesClientBase
- Base client for all AnonFiles clients.
- AnonFilesImplClientBase
- Provides a common implementation across all AnonFiles APIs.
- AnonFileSize
-
Holder for file
bytes
count and the humanreadable
size. - AnonFileUploadEvent
-
The event emitted by AnonFiles clients
upload
method. - AnonFileUploadResponse
- The response class for the AnonFile upload response.
- AnonFileUploadResponseData
- The data class for the AnonFile upload response.
- AnonFileUploadResponseError
- The response class for the AnonFile upload response error.
- AnonymFile
- Implementation of AnonFilesClientBase for https://AnonymFile.org/.
- FileChan
- Implementation of AnonFilesClientBase for https://filechan.org/.
- LetsUpload
- Implementation of AnonFilesClientBase for https://letsupload.cc/.
Functions
-
allClients(
) → List< AnonFilesClientBase> -
sendMultipartRequestTo(
String url, Stream< Uint8List> byteStream, int length, {String method = 'POST', String filename = 'file'}) → Stream<Uint8List> -
uploadFileWith(
{required String endpoint, required Stream< Uint8List> byteStream, required String filename, required int length, MultipartRequestClient? multipartRequestClient, AnonFileUploadResponse? mapResponseJson(Map<String, dynamic> )?}) → Stream<AnonFileUploadEvent> -
Help function that actually uploads the file
bytes
with a givenfilename
using amultipartRequestClient
provider to a given AnonFilesendpoint
.