mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 00:49:02 +00:00
Merge pull request #2884 from appwrite/feat-flutter-dart-changelog
This commit is contained in:
commit
6c0c7c1cb1
5 changed files with 37 additions and 5 deletions
|
|
@ -180,7 +180,7 @@ return [
|
|||
[
|
||||
'key' => 'cli',
|
||||
'name' => 'Command Line',
|
||||
'version' => '0.16.0',
|
||||
'version' => '0.15.0',
|
||||
'url' => 'https://github.com/appwrite/sdk-for-cli',
|
||||
'package' => 'https://www.npmjs.com/package/appwrite-cli',
|
||||
'enabled' => true,
|
||||
|
|
|
|||
|
|
@ -1,3 +1,15 @@
|
|||
## 4.0.0
|
||||
* Support for Appwrite 0.13
|
||||
* **BREAKING** **Tags** have been renamed to **Deployments**
|
||||
* **BREAKING** `createFile` function expects Bucket ID as the first parameter
|
||||
* **BREAKING** `createDeployment` and `createFile` functions expect an instance **InputFile** rather than the instance of **MultipartFile**
|
||||
* **BREAKING** `list<Entity>` endpoints now contain a `total` attribute instead of `sum`
|
||||
* `onProgress()` callback function for endpoints supporting file uploads
|
||||
* Support for synchronous function executions
|
||||
* Bug fixes and Improvements
|
||||
|
||||
**Full Changelog for Appwrite 0.13 can be found here**: https://github.com/appwrite/appwrite/blob/master/CHANGES.md#version-0130
|
||||
|
||||
## 3.0.2
|
||||
- String Attribute Type got fixed
|
||||
|
||||
|
|
|
|||
|
|
@ -41,10 +41,11 @@ Upload File:
|
|||
```dart
|
||||
Storage storage = Storage(client);
|
||||
|
||||
MultipartFile file = MultipartFile.fromFile('./path-to-file/image.jpg', filename: 'image.jpg');
|
||||
InputFile file = InputFile(path: './path-to-file/image.jpg', fileName: 'image.jpg');
|
||||
|
||||
storage.createFile(
|
||||
fileId: '[FILE_ID]',
|
||||
bucketId: '[BUCKET_ID]',
|
||||
fileId: '[FILE_ID]', // use 'unique()' to automatically generate a unique ID
|
||||
file: file,
|
||||
read: ['role:all'],
|
||||
write: []
|
||||
|
|
|
|||
|
|
@ -1,3 +1,15 @@
|
|||
## 4.0.0
|
||||
* Support for Appwrite 0.13
|
||||
* **BREAKING** **Tags** have been renamed to **Deployments**
|
||||
* **BREAKING** `createFile` function expects Bucket ID as the first parameter
|
||||
* **BREAKING** `createDeployment` and `createFile` functions expect an instance **InputFile** rather than the instance of **MultipartFile**
|
||||
* **BREAKING** `list<Entity>` endpoints now contain a `total` attribute instead of `sum`
|
||||
* `onProgress()` callback function for endpoints supporting file uploads
|
||||
* Support for synchronous function executions
|
||||
* Bug fixes and Improvements
|
||||
|
||||
**Full Changelog for Appwrite 0.13 can be found here**: https://github.com/appwrite/appwrite/blob/master/CHANGES.md#version-0130
|
||||
|
||||
## 3.0.1
|
||||
- Export Query Builder
|
||||
|
||||
|
|
|
|||
|
|
@ -37,10 +37,17 @@ Upload File:
|
|||
```dart
|
||||
Storage storage = Storage(client);
|
||||
|
||||
MultipartFile file = MultipartFile.fromFile('./path-to-file/image.jpg', filename: 'image.jpg');
|
||||
late InputFile file;
|
||||
|
||||
if(kIsWeb) {
|
||||
file = InputFile(file: MultipartFile.fromFile('./path-to-file/image.jpg', filename: 'image.jpg'));
|
||||
} else {
|
||||
file = InputFile(path: './path-to-file/image.jpg', fileName: 'image.jpg');
|
||||
}
|
||||
|
||||
storage.createFile(
|
||||
fileId: '[FILE_ID]',
|
||||
bucketId: '[BUCKET_ID]',
|
||||
fileId: '[FILE_ID]', // use 'unique()' to automatically generate a unique ID
|
||||
file: file,
|
||||
read: ['role:all'],
|
||||
write: []
|
||||
|
|
|
|||
Loading…
Reference in a new issue