Skip to content

Commit ae3686b

Browse files
add param checking and removed default values
1 parent 8ab74b3 commit ae3686b

File tree

11 files changed

+1135
-396
lines changed

11 files changed

+1135
-396
lines changed

docs/storage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ GET https://appwrite.io/v1/storage/files/{fileId}/preview
110110
| borderWidth | integer | Preview image border in pixels. Pass an integer between 0 to 100. Defaults to 0. | 0 |
111111
| borderColor | string | Preview image border color. Use a valid HEX color, no # is needed for prefix. | |
112112
| borderRadius | integer | Preview image border radius in pixels. Pass an integer between 0 to 4000. | 0 |
113-
| opacity | number | Preview image opacity. Only works with images having an alpha channel (like png). Pass a number between 0 to 1. | 1 |
113+
| opacity | integer | Preview image opacity. Only works with images having an alpha channel (like png). Pass a number between 0 to 1. | 1 |
114114
| rotation | integer | Preview image rotation in degrees. Pass an integer between 0 and 360. | 0 |
115115
| background | string | Preview image background color. Only works with transparent images (png). Use a valid HEX color, no # is needed for prefix. | |
116116
| output | string | Output format type (jpeg, jpg, png, gif and webp). | |

src/Appwrite/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class Client
3535
*/
3636
protected $headers = [
3737
'content-type' => '',
38-
'x-sdk-version' => 'appwrite:php:2.1.1',
38+
'x-sdk-version' => 'appwrite:php:2.1.2',
3939
];
4040

4141
/**

0 commit comments

Comments
 (0)