Skip to content

Commit

Permalink
Fix file input param
Browse files Browse the repository at this point in the history
  • Loading branch information
lohanidamodar committed Mar 4, 2022
1 parent ec5a6a9 commit e2c209b
Show file tree
Hide file tree
Showing 13 changed files with 28 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 4.0.1
* Fix InputFile filename param
* Fix examples

## 4.0.0
* Support for Appwrite 0.13
* **BREAKING** **Tags** have been renamed to **Deployments**
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Add this to your package's `pubspec.yaml` file:

```yml
dependencies:
appwrite: ^4.0.0
appwrite: ^4.0.1
```
You can install packages from the command line:
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/storage/create-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ void main() { // Init SDK
Future result = storage.createFile(
bucketId: '[BUCKET_ID]',
fileId: '[FILE_ID]',
file: await MultipartFile.fromPath('file', './path-to-files/image.jpg', 'image.jpg'),
file: InputFile(path: './path-to-files/image.jpg', filename: 'image.jpg'),
);

result
Expand Down
2 changes: 2 additions & 0 deletions lib/services/account.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
part of appwrite;


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

Expand Down
3 changes: 3 additions & 0 deletions lib/services/avatars.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
part of appwrite;


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

Expand Down
3 changes: 3 additions & 0 deletions lib/services/database.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
part of appwrite;


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

Expand Down
3 changes: 3 additions & 0 deletions lib/services/functions.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
part of appwrite;


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

Expand Down
3 changes: 3 additions & 0 deletions lib/services/locale.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
part of appwrite;


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

Expand Down
2 changes: 2 additions & 0 deletions lib/services/storage.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
part of appwrite;


/// The Storage service allows you to manage your project files.
class Storage extends Service {
Storage(Client client): super(client);

Expand Down
3 changes: 3 additions & 0 deletions lib/services/teams.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
part of appwrite;


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

Expand Down
2 changes: 1 addition & 1 deletion lib/src/client_browser.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class ClientBrowser extends ClientBase with ClientMixin {
.replaceFirst('http://', 'ws://');
_headers = {
'content-type': 'application/json',
'x-sdk-version': 'appwrite:flutter:4.0.0',
'x-sdk-version': 'appwrite:flutter:4.0.1',
'X-Appwrite-Response-Format' : '0.13.0',
};

Expand Down
2 changes: 1 addition & 1 deletion lib/src/client_io.dart
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class ClientIO extends ClientBase with ClientMixin {
.replaceFirst('http://', 'ws://');
_headers = {
'content-type': 'application/json',
'x-sdk-version': 'appwrite:flutter:4.0.0',
'x-sdk-version': 'appwrite:flutter:4.0.1',
'X-Appwrite-Response-Format' : '0.13.0',
};

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: appwrite
version: 4.0.0
version: 4.0.1
description: Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API
homepage: https://appwrite.io
repository: https://github.com/appwrite/sdk-for-flutter
Expand Down

0 comments on commit e2c209b

Please sign in to comment.