Skip to content

Commit 878cb29

Browse files
ANKUR DWIVEDIANKUR DWIVEDI
authored andcommitted
added transformation parameter
1 parent 4a766af commit 878cb29

3 files changed

Lines changed: 11 additions & 4 deletions

File tree

imagekitio/constants/files.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,5 @@
2929
"overwrite_custom_metadata",
3030
"custom_metadata",
3131
"embedded_metadata",
32+
"transformation",
3233
]

imagekitio/models/UploadFileRequestOptions.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ def __init__(
1818
overwrite_tags: bool = None,
1919
overwrite_custom_metadata: bool = None,
2020
custom_metadata: json = None,
21+
transformation: json = None,
2122
):
2223
if use_unique_file_name is not None:
2324
self.use_unique_file_name = use_unique_file_name
@@ -45,3 +46,5 @@ def __init__(
4546
self.overwrite_custom_metadata = overwrite_custom_metadata
4647
if custom_metadata is not None:
4748
self.custom_metadata = custom_metadata
49+
if transformation is not None:
50+
self.transformation = transformation

tests/test_files_ops.py

Lines changed: 7 additions & 4 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)