Skip to content

Commit 7733a1f

Browse files
committed
fix file input and examples
1 parent 879dd29 commit 7733a1f

File tree

17 files changed

+27
-8
lines changed

17 files changed

+27
-8
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 4.0.1
2+
* Fix InputFile filename param
3+
* Fix examples
4+
15
## 4.0.0
26
* Support for Appwrite 0.13
37
* **BREAKING** **Tags** have been renamed to **Deployments**

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Add this to your package's `pubspec.yaml` file:
2323

2424
```yml
2525
dependencies:
26-
dart_appwrite: ^4.0.0
26+
dart_appwrite: ^4.0.1
2727
```
2828
2929
You can install packages from the command line:

docs/examples/functions/create-deployment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ void main() { // Init SDK
1313
Future result = functions.createDeployment(
1414
functionId: '[FUNCTION_ID]',
1515
entrypoint: '[ENTRYPOINT]',
16-
code: await MultipartFile.fromPath('code', './path-to-files/image.jpg', 'image.jpg'),
16+
code: InputFile(path: './path-to-files/image.jpg', filename: 'image.jpg'),
1717
activate: false,
1818
);
1919

docs/examples/storage/create-file.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ void main() { // Init SDK
1414
Future result = storage.createFile(
1515
bucketId: '[BUCKET_ID]',
1616
fileId: '[FILE_ID]',
17-
file: await MultipartFile.fromPath('file', './path-to-files/image.jpg', 'image.jpg'),
17+
file: InputFile(path: './path-to-files/image.jpg', filename: 'image.jpg'),
1818
);
1919

2020
result

lib/services/account.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
part of dart_appwrite;
22

3+
/// The Account service allows you to authenticate and manage a user account.
34
class Account extends Service {
45
Account(Client client): super(client);
56

lib/services/avatars.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
part of dart_appwrite;
22

3+
/// The Avatars service aims to help you complete everyday tasks related to
4+
/// your app image, icons, and avatars.
35
class Avatars extends Service {
46
Avatars(Client client): super(client);
57

lib/services/database.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
part of dart_appwrite;
22

3+
/// The Database service allows you to create structured collections of
4+
/// documents, query and filter lists of documents
35
class Database extends Service {
46
Database(Client client): super(client);
57

lib/services/functions.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
part of dart_appwrite;
22

3+
/// The Functions Service allows you view, create and manage your Cloud
4+
/// Functions.
35
class Functions extends Service {
46
Functions(Client client): super(client);
57

lib/services/health.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
part of dart_appwrite;
22

3+
/// The Health service allows you to both validate and monitor your Appwrite
4+
/// server's health.
35
class Health extends Service {
46
Health(Client client): super(client);
57

lib/services/locale.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
part of dart_appwrite;
22

3+
/// The Locale service allows you to customize your app based on your users'
4+
/// location.
35
class Locale extends Service {
46
Locale(Client client): super(client);
57

0 commit comments

Comments
 (0)