Dart - bucket.file.write()
Write a file to a bucket.
import 'package:nitric_sdk/nitric.dart';final assets = Nitric.bucket("assets").allow([BucketPermission.write,]);final logo = assets.file("images/logo.png");await logo.writ("someImageData");
Parameters
- Name
data
- Required
- Required
- Type
- String
- Description
The data to write to the file.
Examples
Write a file
import 'package:nitric_sdk/nitric.dart';final assets = Nitric.bucket("assets").allow([BucketPermission.write,]);final logo = assets.file("images/logo.png");await logo.writ("someImageData");
Last updated on Nov 8, 2024