#
Files
high level
#
Example
blossom
final downloadResult = await ndk.files.download(
url:
"https://cdn.hzrd149.com/b1674191a88ec5cdd733e4240a81803105dc412d6c6708d53ab94fc248f4f553.pdf");
print(
"file of type: ${downloadResult.mimeType}, size: ${downloadResult.data.length}");
non blossom url
final downloadResult = await ndk.files
.download(url: "https://camelus.app/.well-known/nostr.json");
print(
"file of type: ${downloadResult.mimeType}, size: ${downloadResult.data.length}");
#
How to use
Files uses blossom under the hood to get, upload and delete files.
The default user server list, specified by kind 10063
is used for upload and delete
If you need more granular control check out: