Skip to content

Commit e2c209b

Browse files
committed
Fix file input param
1 parent ec5a6a9 commit e2c209b

File tree

13 files changed

+28
-5
lines changed

13 files changed

+28
-5
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
@@ -21,7 +21,7 @@ Add this to your package's `pubspec.yaml` file:
2121

2222
```yml
2323
dependencies:
24-
appwrite: ^4.0.0
24+
appwrite: ^4.0.1
2525
```
2626
2727
You can install packages from the command line:

docs/examples/storage/create-file.md

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

1818
result

lib/services/account.dart

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

3+
4+
/// The Account service allows you to authenticate and manage a user account.
35
class Account extends Service {
46
Account(Client client): super(client);
57

lib/services/avatars.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
part of appwrite;
22

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

lib/services/database.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
part of appwrite;
22

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

lib/services/functions.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
part of appwrite;
22

3+
4+
/// The Functions Service allows you view, create and manage your Cloud
5+
/// Functions.
36
class Functions extends Service {
47
Functions(Client client): super(client);
58

lib/services/locale.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
part of appwrite;
22

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

lib/services/storage.dart

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

3+
4+
/// The Storage service allows you to manage your project files.
35
class Storage extends Service {
46
Storage(Client client): super(client);
57

lib/services/teams.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
part of appwrite;
22

3+
4+
/// The Teams service allows you to group users of your project and to enable
5+
/// them to share read and write access to your project resources
36
class Teams extends Service {
47
Teams(Client client): super(client);
58

0 commit comments

Comments
 (0)